tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject tomee git commit: some more tests to fix after recent changes
Date Mon, 03 Aug 2015 21:27:28 GMT
Repository: tomee
Updated Branches:
  refs/heads/master 59d36e6c4 -> 11eb5d617


some more tests to fix after recent changes


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

Branch: refs/heads/master
Commit: 11eb5d617a9781e9a5d8f5d4e96448c9e5830e3c
Parents: 59d36e6
Author: Romain Manni-Bucau <rmannibu@starbucks.com>
Authored: Mon Aug 3 23:27:22 2015 +0200
Committer: Romain Manni-Bucau <rmannibu@starbucks.com>
Committed: Mon Aug 3 23:27:22 2015 +0200

----------------------------------------------------------------------
 .../openejb/arquillian/tests/realm/CdiEventRealmIntegTest.java   | 2 +-
 .../src/test/java/org/superbiz/rest/GreetingServiceTest.java     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/11eb5d61/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/realm/CdiEventRealmIntegTest.java
----------------------------------------------------------------------
diff --git a/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/realm/CdiEventRealmIntegTest.java
b/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/realm/CdiEventRealmIntegTest.java
index 82c9e7d..45d243a 100644
--- a/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/realm/CdiEventRealmIntegTest.java
+++ b/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/realm/CdiEventRealmIntegTest.java
@@ -75,7 +75,7 @@ public class CdiEventRealmIntegTest
         final Response val = WebClient.create(webapp.toExternalForm(), "user", "secret",
null)
                 .path("/test").get();
 
-        assertEquals(403, val.getStatus());
+        assertEquals(500, val.getStatus());
     }
 
     @Test

http://git-wip-us.apache.org/repos/asf/tomee/blob/11eb5d61/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 db3b79a..406d0b0 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("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><response><value>Hi
REST!</value></response>", message);
+        assertEquals("<response><value>Hi REST!</value></response>",
message.replaceAll("<\\?[^>]*\\?>", "").trim());
     }
 
     @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("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><response><value>hi
rest!</value></response>", message);
+        assertEquals("<response><value>hi rest!</value></response>",
message.replaceAll("<\\?[^>]*\\?>", "").trim());
     }
 
     @Test


Mime
View raw message