tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject tomee git commit: xml has prolog now - fixing test
Date Mon, 03 Aug 2015 19:15:04 GMT
Repository: tomee
Updated Branches:
  refs/heads/master 3acaaffe7 -> 59d36e6c4


xml has prolog now - fixing test


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/59d36e6c
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/59d36e6c
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/59d36e6c

Branch: refs/heads/master
Commit: 59d36e6c4580b0be51de7aaf5aba6956e442be56
Parents: 3acaaff
Author: Romain Manni-Bucau <rmannibucau@apache.org>
Authored: Mon Aug 3 21:14:57 2015 +0200
Committer: Romain Manni-Bucau <rmannibucau@apache.org>
Committed: Mon Aug 3 21:14:57 2015 +0200

----------------------------------------------------------------------
 .../src/test/java/org/superbiz/rest/GreetingServiceTest.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/59d36e6c/examples/rest-xml-json/src/test/java/org/superbiz/rest/GreetingServiceTest.java
----------------------------------------------------------------------
diff --git a/examples/rest-xml-json/src/test/java/org/superbiz/rest/GreetingServiceTest.java
b/examples/rest-xml-json/src/test/java/org/superbiz/rest/GreetingServiceTest.java
index 5f00677..db3b79a 100644
--- a/examples/rest-xml-json/src/test/java/org/superbiz/rest/GreetingServiceTest.java
+++ b/examples/rest-xml-json/src/test/java/org/superbiz/rest/GreetingServiceTest.java
@@ -45,7 +45,7 @@ public class GreetingServiceTest {
         final String message = WebClient.create("http://localhost:4204").path("/test/greeting/")
                 .accept(MediaType.APPLICATION_XML_TYPE)
                 .get(String.class);
-        assertEquals("<response><value>Hi REST!</value></response>",
message);
+        assertEquals("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><response><value>Hi
REST!</value></response>", message);
     }
 
     @Test
@@ -54,7 +54,7 @@ public class GreetingServiceTest {
                 .path("/test/greeting/")
                 .accept(MediaType.APPLICATION_XML_TYPE)
                 .post("<request><value>Hi REST!</value></request>",
String.class);
-        assertEquals("<response><value>hi rest!</value></response>",
message);
+        assertEquals("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><response><value>hi
rest!</value></response>", message);
     }
 
     @Test


Mime
View raw message