You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by sj...@apache.org on 2008/01/29 16:54:05 UTC

svn commit: r616407 [4/4] - in /harmony/enhanced/classlib/trunk/modules/pack200/src: main/java/org/apache/harmony/pack200/ main/java/org/apache/harmony/pack200/bytecode/ main/java/org/apache/harmony/pack200/bytecode/forms/ main/java5/org/apache/harmony...

Modified: harmony/enhanced/classlib/trunk/modules/pack200/src/test/java/org/apache/harmony/pack200/tests/SegmentTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/pack200/src/test/java/org/apache/harmony/pack200/tests/SegmentTest.java?rev=616407&r1=616406&r2=616407&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/pack200/src/test/java/org/apache/harmony/pack200/tests/SegmentTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/pack200/src/test/java/org/apache/harmony/pack200/tests/SegmentTest.java Tue Jan 29 07:53:23 2008
@@ -29,7 +29,7 @@
  * Tests for org.apache.harmony.pack200.Segment, which is the main class for pack200.
  */
 public class SegmentTest extends TestCase {
-    
+
     InputStream in;
     JarOutputStream out;
 
@@ -59,7 +59,7 @@
         out = new JarOutputStream(new FileOutputStream(File.createTempFile("Just", "ResourcesGz.jar")));
         segment.writeJar(out);
     }
-    
+
     // Test with an archive containing Harmony's SQL module, packed with -E1
     public void testWithSqlE1() throws Exception {
         in = Segment.class
@@ -69,7 +69,7 @@
         out = new JarOutputStream(new FileOutputStream(File.createTempFile("sql", "-e1.jar")));
         segment.writeJar(out);
     }
-    
+
     // Test with an archive containing Harmony's SQL module
     public void testWithSql() throws Exception {
         in = Segment.class
@@ -79,7 +79,7 @@
         out = new JarOutputStream(new FileOutputStream(File.createTempFile("sql", ".jar")));
         segment.writeJar(out);
     }
-    
+
     // Test with an archive containing Harmony's Pack200 module, packed with -E1
     public void testWithPack200E1() throws Exception {
         in = Segment.class
@@ -89,7 +89,7 @@
         out = new JarOutputStream(new FileOutputStream(File.createTempFile("pack", "200-e1.jar")));
         segment.writeJar(out);
     }
-    
+
     // Test with an archive containing Harmony's Pack200 module
     public void testWithPack200() throws Exception {
         in = Segment.class
@@ -99,7 +99,7 @@
         out = new JarOutputStream(new FileOutputStream(File.createTempFile("pack", "200.jar")));
         segment.writeJar(out);
     }
-    
+
     // Test with an archive containing Harmony's JNDI module
     public void testWithJNDIE1() throws Exception {
         in = Segment.class
@@ -109,7 +109,7 @@
         out = new JarOutputStream(new FileOutputStream(File.createTempFile("jndi", "-e1.jar")));
         segment.writeJar(out);
     }
-    
+
     // Test with an archive containing Annotations
     public void testWithAnnotations() throws Exception {
 
@@ -119,9 +119,9 @@
         assertNotNull(segment);
         out = new JarOutputStream(new FileOutputStream(File.createTempFile("ann", "otations.jar")));
         segment.writeJar(out);
-    
+
     }
- 
+
     public void testInterfaceOnly() throws Exception {
         in = Segment.class
                 .getResourceAsStream("/org/apache/harmony/pack200/tests/InterfaceOnly.pack");
@@ -130,7 +130,7 @@
         out = new JarOutputStream(new FileOutputStream(File.createTempFile("Interface", "Only.jar")));
         segment.writeJar(out);
     }
-    
+
     protected void tearDown() throws Exception {
         super.tearDown();
         try {

Modified: harmony/enhanced/classlib/trunk/modules/pack200/src/test/java/org/apache/harmony/pack200/tests/bytecode/ClassFileEntryTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/pack200/src/test/java/org/apache/harmony/pack200/tests/bytecode/ClassFileEntryTest.java?rev=616407&r1=616406&r2=616407&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/pack200/src/test/java/org/apache/harmony/pack200/tests/bytecode/ClassFileEntryTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/pack200/src/test/java/org/apache/harmony/pack200/tests/bytecode/ClassFileEntryTest.java Tue Jan 29 07:53:23 2008
@@ -38,7 +38,7 @@
 	private void checkEquality(Object equal1, Object equal2, String toString, Object unequal) {
 		assertEquals(equal1,equal2);
 		assertEquals(equal1.hashCode(),equal2.hashCode());
-		assertTrue(equal1.toString().indexOf(toString)>=0); //$NON-NLS-1$
+		assertTrue(equal1.toString().indexOf(toString)>=0); 
 		assertFalse(equal1.equals(unequal));
 		assertFalse(equal2.equals(unequal));
 		assertFalse(unequal.equals(equal1));