empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franci...@apache.org
Subject svn commit: r1158267 - /incubator/empire-db/branches/EMPIREDB-99/empire-db/src/test/java/org/apache/empire/commons/StringUtilsTest.java
Date Tue, 16 Aug 2011 13:30:47 GMT
Author: francisdb
Date: Tue Aug 16 13:30:47 2011
New Revision: 1158267

URL: http://svn.apache.org/viewvc?rev=1158267&view=rev
Log:
EMPIREDB-99 Fix test for change in behavior of StringUtils

Modified:
    incubator/empire-db/branches/EMPIREDB-99/empire-db/src/test/java/org/apache/empire/commons/StringUtilsTest.java

Modified: incubator/empire-db/branches/EMPIREDB-99/empire-db/src/test/java/org/apache/empire/commons/StringUtilsTest.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/branches/EMPIREDB-99/empire-db/src/test/java/org/apache/empire/commons/StringUtilsTest.java?rev=1158267&r1=1158266&r2=1158267&view=diff
==============================================================================
--- incubator/empire-db/branches/EMPIREDB-99/empire-db/src/test/java/org/apache/empire/commons/StringUtilsTest.java
(original)
+++ incubator/empire-db/branches/EMPIREDB-99/empire-db/src/test/java/org/apache/empire/commons/StringUtilsTest.java
Tue Aug 16 13:30:47 2011
@@ -63,7 +63,7 @@ public class StringUtilsTest
 	@Test
 	public void testValueOfObject()
 	{
-		assertEquals("null",StringUtils.valueOf(null));
+		assertEquals("null",StringUtils.valueOf((Object)null));
 		assertEquals("",StringUtils.valueOf(""));
 		assertEquals("123",StringUtils.valueOf(Long.valueOf("123")));
 	}
@@ -71,7 +71,7 @@ public class StringUtilsTest
 	@Test
 	public void testValueOfObjectArray()
 	{
-		assertEquals("null",StringUtils.valueOf(null));
+		assertEquals("null",StringUtils.valueOf((Object[])null));
 		assertEquals("null",StringUtils.valueOf(new Object[]{}));
 		assertEquals("123/12.3",StringUtils.valueOf(new Number[]{Integer.valueOf("123"), Double.valueOf("12.3")}));
 	}



Mime
View raw message