Author: davidb
Date: Tue Nov 14 05:06:55 2017
New Revision: 1815186

URL: http://svn.apache.org/viewvc?rev=1815186&view=rev
Log:
Update to converter test

Modified:
    
felix/trunk/converter/converter/src/test/java/org/apache/felix/converter/impl/ConverterTest.java

Modified: 
felix/trunk/converter/converter/src/test/java/org/apache/felix/converter/impl/ConverterTest.java
URL: 
http://svn.apache.org/viewvc/felix/trunk/converter/converter/src/test/java/org/apache/felix/converter/impl/ConverterTest.java?rev=1815186&r1=1815185&r2=1815186&view=diff
==============================================================================
--- 
felix/trunk/converter/converter/src/test/java/org/apache/felix/converter/impl/ConverterTest.java
 (original)
+++ 
felix/trunk/converter/converter/src/test/java/org/apache/felix/converter/impl/ConverterTest.java
 Tue Nov 14 05:06:55 2017
@@ -348,7 +348,6 @@ public class ConverterTest {
     public void testExceptionDefaultValue() {
         assertEquals(42, (int) 
converter.convert("haha").defaultValue(42).to(int.class));
         assertEquals(999, (int) 
converter.convert("haha").defaultValue(999).to(int.class));
-        assertNull(converter.convert("haha").defaultValue(null).to(int.class));
         try {
             converter.convert("haha").to(int.class);
             fail("Should have thrown an exception");
@@ -539,6 +538,7 @@ public class ConverterTest {
     public void testDefaultValue() {
         long l = converter.convert(null).defaultValue("12").to(Long.class);
         assertEquals(12L, l);
+        
assertNull(converter.convert("haha").defaultValue(null).to(Integer.class));
     }
 
     @Test


Reply via email to