harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r937048 [2/2] - in /harmony/enhanced/java/branches/mrh: ./ classlib/ classlib/modules/luni/src/main/java/java/io/ classlib/modules/luni/src/main/java/java/net/ classlib/modules/luni/src/main/java/org/apache/harmony/luni/platform/ classlib/m...
Date Thu, 22 Apr 2010 20:31:30 GMT
Modified: harmony/enhanced/java/branches/mrh/jdktools/modules/jdktools/src/test/java/org/apache/harmony/tests/tools/serialver/Test.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/jdktools/modules/jdktools/src/test/java/org/apache/harmony/tests/tools/serialver/Test.java?rev=937048&r1=937047&r2=937048&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/jdktools/modules/jdktools/src/test/java/org/apache/harmony/tests/tools/serialver/Test.java
(original)
+++ harmony/enhanced/java/branches/mrh/jdktools/modules/jdktools/src/test/java/org/apache/harmony/tests/tools/serialver/Test.java
Thu Apr 22 20:31:29 2010
@@ -1,13 +1,13 @@
-/* 
+/*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *     http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -24,30 +24,30 @@ import junit.framework.*;
 
 public class Test extends TestCase {
 
-	public void testCalculeSUID() throws ClassNotFoundException {
-		ClassProvider classProvider = new ClassProvider(null, null, false);
-			
-		Clazz clazz = new Clazz(classProvider, "org.apache.harmony.tests.tools.serialver.Point");
-		assertEquals("-2044326457932868113", "" + Main.calculeSUID(clazz));
-		
-		clazz = new Clazz(classProvider, "java.lang.String");
-		assertEquals("-6849794470754667710", "" + Main.calculeSUID(clazz));
-		
-		clazz = new Clazz(classProvider, "java.util.Random");
-		assertEquals("3905348978240129619", "" + Main.calculeSUID(clazz));
-	}
-	
-	public void testIsSerializable() throws ClassNotFoundException {
-		ClassProvider classProvider = new ClassProvider(null, null, false);
-				
-		Clazz clazz = new Clazz(classProvider, "org.apache.harmony.tests.tools.serialver.NoSerialize");
-		assertEquals(false, Main.isSerializable(clazz));
-		
-		clazz = new Clazz(classProvider, "java.lang.Thread");
-		assertEquals(false, Main.isSerializable(clazz));
-		
-		clazz = new Clazz(classProvider, "java.io.File");
-		assertEquals(true, Main.isSerializable(clazz));
-	}
+    public void testCalculeSUID() throws ClassNotFoundException {
+        ClassProvider classProvider = new ClassProvider(null, null, false);
+
+        Clazz clazz = new Clazz(classProvider, "org.apache.harmony.tests.tools.serialver.Point");
+        assertEquals("-2044326457932868113", "" + Main.calculeSUID(clazz));
+
+        clazz = new Clazz(classProvider, "java.lang.String");
+        assertEquals("-6849794470754667710", "" + Main.calculeSUID(clazz));
+
+        clazz = new Clazz(classProvider, "java.util.Random");
+        assertEquals("3905348978240129619", "" + Main.calculeSUID(clazz));
+    }
+
+    public void testIsSerializable() throws ClassNotFoundException {
+        ClassProvider classProvider = new ClassProvider(null, null, false);
+
+        Clazz clazz = new Clazz(classProvider, "org.apache.harmony.tests.tools.serialver.NoSerialize");
+        assertEquals(false, Main.isSerializable(clazz));
+
+        clazz = new Clazz(classProvider, "java.lang.Thread");
+        assertEquals(false, Main.isSerializable(clazz));
+
+        clazz = new Clazz(classProvider, "java.io.File");
+        assertEquals(true, Main.isSerializable(clazz));
+    }
 
 }



Mime
View raw message