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
Post a Comment