cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1294854 - /cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/PrimitiveTextProviderTest.java
Date Tue, 28 Feb 2012 22:20:03 GMT
Author: dkulp
Date: Tue Feb 28 22:20:03 2012
New Revision: 1294854

URL: http://svn.apache.org/viewvc?rev=1294854&view=rev
Log:
Use Byte.TYPE instead of byte.class to not confuse various parsers

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/PrimitiveTextProviderTest.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/PrimitiveTextProviderTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/PrimitiveTextProviderTest.java?rev=1294854&r1=1294853&r2=1294854&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/PrimitiveTextProviderTest.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/PrimitiveTextProviderTest.java
Tue Feb 28 22:20:03 2012
@@ -39,18 +39,18 @@ public class PrimitiveTextProviderTest e
     @Test
     public void testIsWriteable() {
         MessageBodyWriter<Object> p = new PrimitiveTextProvider<Object>();
-        assertTrue(p.isWriteable(byte.class, null, null, null)
+        assertTrue(p.isWriteable(Byte.TYPE, null, null, null)
                    && p.isWriteable(Byte.class, null, null, null)
-                   && p.isWriteable(boolean.class, null, null, null)
+                   && p.isWriteable(Boolean.TYPE, null, null, null)
                    && p.isWriteable(Boolean.class, null, null, null));
     }
     
     @Test
     public void testIsReadable() {
         MessageBodyReader<Object> p = new PrimitiveTextProvider<Object>();
-        assertTrue(p.isReadable(byte.class, null, null, null)
+        assertTrue(p.isReadable(Byte.TYPE, null, null, null)
                    && p.isReadable(Byte.class, null, null, null)
-                   && p.isReadable(boolean.class, null, null, null)
+                   && p.isReadable(Boolean.TYPE, null, null, null)
                    && p.isReadable(Boolean.class, null, null, null));
     }
     
@@ -60,7 +60,7 @@ public class PrimitiveTextProviderTest e
         MessageBodyReader<?> p = new PrimitiveTextProvider<Object>();
         
         @SuppressWarnings("rawtypes")
-        Byte valueRead = (Byte)p.readFrom((Class)byte.class, 
+        Byte valueRead = (Byte)p.readFrom((Class)Byte.TYPE, 
                                           null, 
                                           null, 
                                           null, 
@@ -75,7 +75,7 @@ public class PrimitiveTextProviderTest e
     public void testReadBoolean() throws Exception {
         MessageBodyReader p = new PrimitiveTextProvider();
         
-        boolean valueRead = (Boolean)p.readFrom(boolean.class, 
+        boolean valueRead = (Boolean)p.readFrom(Boolean.TYPE, 
                                           null, 
                                           null, 
                                           null, 



Mime
View raw message