felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r1790846 - /felix/trunk/converter/converter/src/test/java/org/apache/felix/converter/impl/ConverterMapTest.java
Date Mon, 10 Apr 2017 15:03:51 GMT
Author: davidb
Date: Mon Apr 10 15:03:51 2017
New Revision: 1790846

URL: http://svn.apache.org/viewvc?rev=1790846&view=rev
Log:
Fix broken test.

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

Modified: felix/trunk/converter/converter/src/test/java/org/apache/felix/converter/impl/ConverterMapTest.java
URL: http://svn.apache.org/viewvc/felix/trunk/converter/converter/src/test/java/org/apache/felix/converter/impl/ConverterMapTest.java?rev=1790846&r1=1790845&r2=1790846&view=diff
==============================================================================
--- felix/trunk/converter/converter/src/test/java/org/apache/felix/converter/impl/ConverterMapTest.java
(original)
+++ felix/trunk/converter/converter/src/test/java/org/apache/felix/converter/impl/ConverterMapTest.java
Mon Apr 10 15:03:51 2017
@@ -29,7 +29,6 @@ import java.util.Map;
 
 import org.junit.After;
 import org.junit.Before;
-import org.junit.Ignore;
 import org.junit.Test;
 import org.osgi.util.converter.ConversionException;
 import org.osgi.util.converter.Converter;
@@ -125,7 +124,6 @@ public class ConverterMapTest {
     }
 
     @Test
-    @Ignore("This test is broken :-(")
     public void testMapToJavaBean() {
         Map<String, String> m = new HashMap<>();
 
@@ -133,7 +131,7 @@ public class ConverterMapTest {
         m.put("enabled", "true");
         m.put("numbers", "42");
         m.put("s", "will disappear");
-        MyBean mb = converter.convert(m).to(MyBean.class);
+        MyBean mb = converter.convert(m).targetAsBean().to(MyBean.class);
         assertEquals("Joe", mb.getMe());
         assertTrue(mb.isEnabled());
         assertNull(mb.getF());



Mime
View raw message