olingo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sklev...@apache.org
Subject [2/2] git commit: [OLINGO-337] fix unit test error
Date Wed, 09 Jul 2014 12:51:17 GMT
[OLINGO-337] fix unit test error


Project: http://git-wip-us.apache.org/repos/asf/olingo-odata4/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata4/commit/8e0abd7f
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata4/tree/8e0abd7f
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata4/diff/8e0abd7f

Branch: refs/heads/master
Commit: 8e0abd7f1f0c6bdab319a5358e750f0311a809ed
Parents: cbd2b3c
Author: Stephan Klevenz <stephan.klevenz@sap.com>
Authored: Tue Jul 8 15:50:31 2014 +0200
Committer: Stephan Klevenz <stephan.klevenz@sap.com>
Committed: Wed Jul 9 14:51:03 2014 +0200

----------------------------------------------------------------------
 .../java/org/apache/olingo/server/core/ODataHandlerTest.java    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8e0abd7f/lib/server-test/src/test/java/org/apache/olingo/server/core/ODataHandlerTest.java
----------------------------------------------------------------------
diff --git a/lib/server-test/src/test/java/org/apache/olingo/server/core/ODataHandlerTest.java
b/lib/server-test/src/test/java/org/apache/olingo/server/core/ODataHandlerTest.java
index 93a2460..6933d4c 100644
--- a/lib/server-test/src/test/java/org/apache/olingo/server/core/ODataHandlerTest.java
+++ b/lib/server-test/src/test/java/org/apache/olingo/server/core/ODataHandlerTest.java
@@ -82,7 +82,10 @@ public class ODataHandlerTest {
 
     assertNotNull(response);
     assertEquals(200, response.getStatusCode());
-    assertEquals(HttpContentType.APPLICATION_JSON, response.getHeaders().get(HttpHeader.CONTENT_TYPE));
+
+    String ct = response.getHeaders().get(HttpHeader.CONTENT_TYPE);
+    assertTrue(ct.contains("application/json"));
+    assertTrue(ct.contains("odata.metadata=minimal"));
 
     assertNotNull(response.getContent());
     String doc = IOUtils.toString(response.getContent());


Mime
View raw message