spray - How to add test-case of a route only with pathEnd -



spray - How to add test-case of a route only with pathEnd -

i have route

get { pathend { respondwithmediatype(`text/html`) { // xml marshalled `text/xml` default, override here complete("[]") } } }

i trying add together test-case route this

get() ~> route ~> check { mediatype === mediatypes.`text/html` responseas[string] === "[]" }

but getting

[error] request not handled

can tell me how write test-case route? in advance.

spray spray-dsl spray-test

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -