Skip to content

Commit

Permalink
Fix Jackson2Test - add javax.ws.rs.ext.Providers (#953)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanovotn authored and asoldano committed Sep 27, 2016
1 parent d1ef07f commit 720c7de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -72,10 +72,10 @@ public interface Jackson2Proxy {
public static Archive<?> deploy() {
WebArchive war = TestUtil.prepareArchive(Jackson2Test.class.getSimpleName());
war.addClass(Jackson2Test.class);
war.addAsResource(Jackson2Test.class.getPackage(), "javax.ws.rs.ext.Providers", "META-INF/services/javax.ws.rs.ext.Providers");
return TestUtil.finishContainerPrepare(war, null, Jackson2Resource.class, Jackson2Product.class,
Jackson2XmlResource.class, Jackson2XmlProduct.class, Jackson2JAXBResource.class,
Jackson2XmlResourceWithJacksonAnnotation.class, Jackson2XmlResourceWithJAXB.class,
org.jboss.resteasy.plugins.providers.jackson.Jackson2JsonpInterceptor.class);
Jackson2XmlResourceWithJacksonAnnotation.class, Jackson2XmlResourceWithJAXB.class);
}

/**
Expand All @@ -88,8 +88,7 @@ public static Archive<?> deployJettison() {
war.addAsManifestResource("jboss-deployment-structure-jackson-v2-jettison.xml", "jboss-deployment-structure.xml");
return TestUtil.finishContainerPrepare(war, null, Jackson2Resource.class, Jackson2Product.class,
Jackson2XmlResource.class, Jackson2XmlProduct.class, Jackson2JAXBResource.class,
Jackson2XmlResourceWithJacksonAnnotation.class, Jackson2XmlResourceWithJAXB.class,
org.jboss.resteasy.plugins.providers.jackson.Jackson2JsonpInterceptor.class);
Jackson2XmlResourceWithJacksonAnnotation.class, Jackson2XmlResourceWithJAXB.class);
}

@Before
Expand Down Expand Up @@ -148,7 +147,7 @@ public void testJacksonJsonp() throws Exception {
String entity = response.readEntity(String.class);
logger.info(entity);
Assert.assertEquals(HttpResponseCodes.SC_OK, response.getStatus());
Assert.assertEquals(TestUtil.getErrorMessageForKnownIssue("JBEAP-1168"), "foo({\"name\":\"Iphone\",\"id\":333})", entity);
Assert.assertEquals("The response entity content doesn't match the expected", "foo({\"name\":\"Iphone\",\"id\":333})", entity);
response.close();
}

Expand Down
@@ -0,0 +1 @@
org.jboss.resteasy.plugins.providers.jackson.Jackson2JsonpInterceptor

0 comments on commit 720c7de

Please sign in to comment.