You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by da...@apache.org on 2017/08/17 09:08:21 UTC
svn commit: r1805270 -
/felix/trunk/converter/converter/src/test/java/org/apache/felix/converter/impl/ConverterFunctionTest.java
Author: davidb
Date: Thu Aug 17 09:08:21 2017
New Revision: 1805270
URL: http://svn.apache.org/viewvc?rev=1805270&view=rev
Log:
A small addition to the Converter Unit tests
Modified:
felix/trunk/converter/converter/src/test/java/org/apache/felix/converter/impl/ConverterFunctionTest.java
Modified: felix/trunk/converter/converter/src/test/java/org/apache/felix/converter/impl/ConverterFunctionTest.java
URL: http://svn.apache.org/viewvc/felix/trunk/converter/converter/src/test/java/org/apache/felix/converter/impl/ConverterFunctionTest.java?rev=1805270&r1=1805269&r2=1805270&view=diff
==============================================================================
--- felix/trunk/converter/converter/src/test/java/org/apache/felix/converter/impl/ConverterFunctionTest.java (original)
+++ felix/trunk/converter/converter/src/test/java/org/apache/felix/converter/impl/ConverterFunctionTest.java Thu Aug 17 09:08:21 2017
@@ -45,6 +45,11 @@ public class ConverterFunctionTest {
cf.apply(""));
assertEquals(Integer.valueOf(999),
c.convert("").defaultValue(999).to(Integer.class));
+
+ assertEquals(Integer.valueOf(123),
+ cf.apply("123"));
+ assertEquals(Integer.valueOf(123),
+ c.convert("123").defaultValue(999).to(Integer.class));
}
@Test