Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FeatureTest withJsonBody not working #215

dimparf opened this issue Jun 18, 2015 · 3 comments

FeatureTest withJsonBody not working #215

dimparf opened this issue Jun 18, 2015 · 3 comments


Copy link

@dimparf dimparf commented Jun 18, 2015

I am use Finatra 2.0.0.M2. I write simple TestController and test for it.
My controller do only response.ok.json(user) where user is instance of case class with string fields.
But when I run the test I get error:
java.lang.NoClassDefFoundError: com/twitter/finatra/json/JsonDiff$
[info] at com.twitter.finatra.http.test.EmbeddedHttpServer.jsonAwareHttpExecute(EmbeddedHttpServer.scala:373)
[info] at com.twitter.finatra.http.test.EmbeddedHttpServer.httpGet(EmbeddedHttpServer.scala:113)

Copy link

@cacoco cacoco commented Jun 18, 2015

@dimparf do you have a test dependency on finatra-jackson:tests?

Copy link

@dimparf dimparf commented Jun 19, 2015

No, this dependency is absent.
With it all working. Thanks, cacoco.

@dimparf dimparf closed this Jun 19, 2015
Copy link

@aellerton aellerton commented Nov 26, 2015

In case anyone else struggles with this like I did, the key was to add the following into build.sbt:

"com.twitter.finatra" %% "finatra-jackson" % versions.finatra % "test" classifier "tests",

Note classifier "tests".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants