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/24 11:13:38 UTC
[1/2] tomee git commit: fix broken GreetingServiceTest
Repository: tomee
Updated Branches:
refs/heads/fb_tomee8 263a45e38 -> 93a3fc785
fix broken GreetingServiceTest
Without specifying the mime type the server will blow up bc not knowing what to do.
A bug in older Johnzon versions did hide the bug in this test.
Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/cd945114
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/cd945114
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/cd945114
Branch: refs/heads/fb_tomee8
Commit: cd945114cf8584ad87d157df7bb3df5efd778363
Parents: 263a45e
Author: Mark Struberg <st...@apache.org>
Authored: Tue Oct 24 13:11:38 2017 +0200
Committer: Mark Struberg <st...@apache.org>
Committed: Tue Oct 24 13:11:38 2017 +0200
----------------------------------------------------------------------
.../src/test/java/org/superbiz/rest/GreetingServiceTest.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tomee/blob/cd945114/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 7b54d10..c7caa5a 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
@@ -52,6 +52,7 @@ public class GreetingServiceTest {
public void postXml() throws IOException {
final String message = WebClient.create("http://localhost:4204")
.path("/test/greeting/")
+ .type(MediaType.APPLICATION_XML_TYPE)
.accept(MediaType.APPLICATION_XML_TYPE)
.post("<request><value>Hi REST!</value></request>", String.class);
assertEquals("<response><value>hi rest!</value></response>", message.replaceAll("<\\?[^>]*\\?>", "").trim());
@@ -70,6 +71,7 @@ public class GreetingServiceTest {
public void postJson() throws IOException {
final String message = WebClient.create("http://localhost:4204")
.path("/test/greeting/")
+ .type(MediaType.APPLICATION_JSON_TYPE)
.accept(MediaType.APPLICATION_JSON_TYPE)
.post(new Request("Hi REST!"), String.class);
assertEquals("{\"value\":\"hi rest!\"}", message);
[2/2] tomee git commit: give the module the correct name.
Posted by st...@apache.org.
give the module the correct name.
Otherwise we have 2 modules with the same name.
Copy&Paste bug...
Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/93a3fc78
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/93a3fc78
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/93a3fc78
Branch: refs/heads/fb_tomee8
Commit: 93a3fc785785db0f8026c8ccebcedea086994921
Parents: cd94511
Author: Mark Struberg <st...@apache.org>
Authored: Tue Oct 24 13:12:53 2017 +0200
Committer: Mark Struberg <st...@apache.org>
Committed: Tue Oct 24 13:12:53 2017 +0200
----------------------------------------------------------------------
examples/rest-cdi/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tomee/blob/93a3fc78/examples/rest-cdi/pom.xml
----------------------------------------------------------------------
diff --git a/examples/rest-cdi/pom.xml b/examples/rest-cdi/pom.xml
index edd2cf8..0b414d1 100644
--- a/examples/rest-cdi/pom.xml
+++ b/examples/rest-cdi/pom.xml
@@ -23,7 +23,7 @@
<groupId>org.superbiz</groupId>
<artifactId>rest-cdi</artifactId>
<version>1.1.0-SNAPSHOT</version>
- <name>OpenEJB :: Examples :: REST XML JSON</name>
+ <name>OpenEJB :: Examples :: REST CDI</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>