aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csie...@apache.org
Subject [4/8] aries-jax-rs-whiteboard git commit: Use assert properly
Date Wed, 22 Feb 2017 16:50:56 GMT
Use assert properly


Project: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/repo
Commit: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/commit/729e58ce
Tree: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/tree/729e58ce
Diff: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/diff/729e58ce

Branch: refs/heads/new-spec-with-component-dsl
Commit: 729e58cee6e6b56ea72287e1426d96c6dee8d5e6
Parents: 6243975
Author: Carlos Sierra <csierra@apache.org>
Authored: Wed Feb 15 15:12:55 2017 +0100
Committer: Carlos Sierra <csierra@apache.org>
Committed: Wed Feb 15 15:12:55 2017 +0100

----------------------------------------------------------------------
 jax-rs.itests/src/main/java/test/JaxrsTest.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/blob/729e58ce/jax-rs.itests/src/main/java/test/JaxrsTest.java
----------------------------------------------------------------------
diff --git a/jax-rs.itests/src/main/java/test/JaxrsTest.java b/jax-rs.itests/src/main/java/test/JaxrsTest.java
index 00282ee..5292cfd 100644
--- a/jax-rs.itests/src/main/java/test/JaxrsTest.java
+++ b/jax-rs.itests/src/main/java/test/JaxrsTest.java
@@ -78,7 +78,7 @@ public class JaxrsTest {
             path("/test-application");
 
         Runnable testCase = () -> {
-            assertEquals(webTarget.request().get().getStatus(), 404);
+            assertEquals(404, webTarget.request().get().getStatus());
 
             ServiceRegistration<?> serviceRegistration = null;
 
@@ -142,7 +142,7 @@ public class JaxrsTest {
             path("test");
 
         Runnable testCase = () -> {
-            assertEquals(webTarget.request().get().getStatus(), 404);
+            assertEquals(404, webTarget.request().get().getStatus());
 
             ServiceRegistration<?> serviceRegistration = null;
 
@@ -192,7 +192,7 @@ public class JaxrsTest {
                 "This should say hello", "Hello test",
                 response.readEntity(String.class));
 
-            assertEquals(response.getHeaders().getFirst("Filtered"), "true");
+            assertEquals("true", response.getHeaders().getFirst("Filtered"));
         }
         finally {
             if (serviceRegistration != null) {
@@ -239,7 +239,7 @@ public class JaxrsTest {
                         "Hello test", response.readEntity(String.class));
 
                     assertEquals(
-                        response.getHeaders().getFirst("Filtered"), "true");
+                        "true", response.getHeaders().getFirst("Filtered"));
                 }
                 finally {
                     if (filterRegistration != null) {


Mime
View raw message