empire-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1158265&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=1158265&r1=1158264&r2=1158265&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:27:08 2011
@@ -18,7 +18,9 @@
  */
 package org.apache.empire.commons;
 
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 import org.junit.Test;
 
@@ -61,7 +63,7 @@ public class StringUtilsTest
 	@Test
 	public void testValueOfObject()
 	{
-		assertEquals("",StringUtils.valueOf(null));
+		assertEquals("null",StringUtils.valueOf(null));
 		assertEquals("",StringUtils.valueOf(""));
 		assertEquals("123",StringUtils.valueOf(Long.valueOf("123")));
 	}
@@ -69,8 +71,8 @@ public class StringUtilsTest
 	@Test
 	public void testValueOfObjectArray()
 	{
-		assertEquals("",StringUtils.valueOf(null));
-		assertEquals("",StringUtils.valueOf(new Object[]{}));
+		assertEquals("null",StringUtils.valueOf(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