You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by st...@apache.org on 2017/10/23 17:19:41 UTC
[26/28] tomee git commit: Fix test failures
Fix test failures
Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/1f90ee23
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/1f90ee23
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/1f90ee23
Branch: refs/heads/fb_tomee8
Commit: 1f90ee23c2a6f91fe5902dbf320f9712fcbeac9a
Parents: bdd41eb
Author: Jonathan Gallimore <jo...@jrg.me.uk>
Authored: Tue Oct 10 13:03:45 2017 +0100
Committer: Jonathan Gallimore <jo...@jrg.me.uk>
Committed: Tue Oct 10 13:03:45 2017 +0100
----------------------------------------------------------------------
.../src/test/java/org/superbiz/rest/GreetingServiceTest.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tomee/blob/1f90ee23/examples/rest-cdi/src/test/java/org/superbiz/rest/GreetingServiceTest.java
----------------------------------------------------------------------
diff --git a/examples/rest-cdi/src/test/java/org/superbiz/rest/GreetingServiceTest.java b/examples/rest-cdi/src/test/java/org/superbiz/rest/GreetingServiceTest.java
index ecc79b6..da07ecc 100644
--- a/examples/rest-cdi/src/test/java/org/superbiz/rest/GreetingServiceTest.java
+++ b/examples/rest-cdi/src/test/java/org/superbiz/rest/GreetingServiceTest.java
@@ -65,6 +65,7 @@ public class GreetingServiceTest {
public void postXml() throws IOException {
final String message = WebClient.create("http://localhost:" + port).path("/test/greeting/")
.accept(MediaType.APPLICATION_XML_TYPE)
+ .type(MediaType.APPLICATION_XML_TYPE)
.post(new Request("Hi REST!"), GreetingService.Greet.class).getMessage();
assertEquals("hi rest!", message);
}
@@ -81,6 +82,7 @@ public class GreetingServiceTest {
public void postJson() throws IOException {
final String message = WebClient.create("http://localhost:" + port, asList(new JohnzonProvider<GreetingService.Greet>())).path("/test/greeting/")
.accept(MediaType.APPLICATION_JSON_TYPE)
+ .type(MediaType.APPLICATION_JSON_TYPE)
.post(new Request("Hi REST!"), GreetingService.Greet.class).getMessage();
assertEquals("hi rest!", message);
}