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

java.lang.AssertionError: Expected: a string containing "\"identifier\":" in ca.uhn.fhir.rest.server.ServerFeaturesTest #186

Closed
pogo61 opened this issue Jun 17, 2015 · 2 comments

Comments

@pogo61
Copy link

pogo61 commented Jun 17, 2015

James,
after refreshing hapi-fhir-structures-dstu from the trunk repo I'm getting this error:
Running ca.uhn.fhir.rest.server.ServerFeaturesTest
Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.651 sec <<< FAILURE! - in ca.uhn.fhir.rest.server.ServerFeaturesTest
testAcceptHeaderWithMultiple(ca.uhn.fhir.rest.server.ServerFeaturesTest) Time elapsed: 0.007 sec <<< FAILURE!
java.lang.AssertionError:
Expected: a string containing ""identifier":"
but: was ""
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at ca.uhn.fhir.rest.server.ServerFeaturesTest.testAcceptHeaderWithMultiple(ServerFeaturesTest.java:155)

If I change line 155 to:
assertThat(responseContent, StringContains.containsString("identifier"));
it passes.

I'm assuming that you are only looking for the identifier element?

@jamesagnew
Copy link
Collaborator

Can you please sync again? This was actually the unit test catching a
problem with a recent commit.

On Wed, Jun 17, 2015 at 3:58 PM, Paul Pogonoski notifications@github.com
wrote:

James,
after refreshing hapi-fhir-structures-dstu from the trunk repo I'm getting
this error:
Running ca.uhn.fhir.rest.server.ServerFeaturesTest
Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.651 sec
<<< FAILURE! - in ca.uhn.fhir.rest.server.ServerFeaturesTest
testAcceptHeaderWithMultiple(ca.uhn.fhir.rest.server.ServerFeaturesTest)
Time elapsed: 0.007 sec <<< FAILURE!
java.lang.AssertionError:
Expected: a string containing ""identifier":"
but: was ""
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at
ca.uhn.fhir.rest.server.ServerFeaturesTest.testAcceptHeaderWithMultiple(ServerFeaturesTest.java:155)

If I change line 155 to:
assertThat(responseContent, StringContains.containsString("identifier"));
it passes.

I'm assuming that you are only looking for the identifier element?


Reply to this email directly or view it on GitHub
#186.

@pogo61
Copy link
Author

pogo61 commented Jun 17, 2015

yep..it's gone now. ;-)

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants