harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r464311 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ObjectStreamConstantsTest.java
Date Sun, 15 Oct 2006 22:36:27 GMT
Author: ndbeyer
Date: Sun Oct 15 15:36:27 2006
New Revision: 464311

URL: http://svn.apache.org/viewvc?view=rev&rev=464311
Log:
Clean ObjectStreamContantsTest - simplify and eliminate compiler warnings

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ObjectStreamConstantsTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ObjectStreamConstantsTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ObjectStreamConstantsTest.java?view=diff&rev=464311&r1=464310&r2=464311
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ObjectStreamConstantsTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ObjectStreamConstantsTest.java
Sun Oct 15 15:36:27 2006
@@ -25,24 +25,20 @@
 	 * @tests java.io.ObjectStreamConstants#TC_ENUM
 	 */
 	public void test_TC_ENUM() {
-		assertEquals(126, MockObjectStreamConstants.TC_ENUM);
+		assertEquals(126, ObjectStreamConstants.TC_ENUM);
 	}
 
 	/**
 	 * @tests java.io.ObjectStreamConstants#SC_ENUM
 	 */
 	public void test_SC_ENUM() {
-		assertEquals(16, MockObjectStreamConstants.SC_ENUM);
+		assertEquals(16, ObjectStreamConstants.SC_ENUM);
 	}
 
 	/**
 	 * @tests java.io.ObjectStreamConstants#TC_MAX
 	 */
 	public void test_TC_MAX() {
-		assertEquals(126, MockObjectStreamConstants.TC_MAX);
-	}
-
-	private class MockObjectStreamConstants implements ObjectStreamConstants {
-		// empty
+		assertEquals(126, ObjectStreamConstants.TC_MAX);
 	}
 }



Mime
View raw message