cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1460722 - /cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/ResponseBuilderImplTest.java
Date Mon, 25 Mar 2013 15:45:45 GMT
Author: sergeyb
Date: Mon Mar 25 15:45:44 2013
New Revision: 1460722

URL: http://svn.apache.org/r1460722
Log:
Corrected expected/actual order in checkBuild() unit test

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/ResponseBuilderImplTest.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/ResponseBuilderImplTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/ResponseBuilderImplTest.java?rev=1460722&r1=1460721&r2=1460722&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/ResponseBuilderImplTest.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/ResponseBuilderImplTest.java
Mon Mar 25 15:45:44 2013
@@ -254,9 +254,9 @@ public class ResponseBuilderImplTest ext
     private void checkBuild(Response r, int status, Object entity, 
                             MetadataMap<String, Object> meta) {
         ResponseImpl ri = (ResponseImpl)r;
-        assertEquals("Wrong status", ri.getStatus(), status);
-        assertSame("Wrong entity", ri.getEntity(), entity);
-        assertEquals("Wrong meta", ri.getMetadata(), meta);
+        assertEquals("Wrong status", status, ri.getStatus());
+        assertSame("Wrong entity", entity, ri.getEntity());
+        assertEquals("Wrong meta", meta, ri.getMetadata());
     }
     
     @Test



Mime
View raw message