harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sjanu...@apache.org
Subject svn commit: r647886 - in /harmony/enhanced/classlib/trunk/modules/pack200/src/test/java/org/apache/harmony/unpack200/tests: ClassVersionTest.java SegmentTest.java
Date Mon, 14 Apr 2008 16:33:46 GMT
Author: sjanuary
Date: Mon Apr 14 09:33:38 2008
New Revision: 647886

URL: http://svn.apache.org/viewvc?rev=647886&view=rev
Log:
Pack200 - package renaming continued

Modified:
    harmony/enhanced/classlib/trunk/modules/pack200/src/test/java/org/apache/harmony/unpack200/tests/ClassVersionTest.java
    harmony/enhanced/classlib/trunk/modules/pack200/src/test/java/org/apache/harmony/unpack200/tests/SegmentTest.java

Modified: harmony/enhanced/classlib/trunk/modules/pack200/src/test/java/org/apache/harmony/unpack200/tests/ClassVersionTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/pack200/src/test/java/org/apache/harmony/unpack200/tests/ClassVersionTest.java?rev=647886&r1=647885&r2=647886&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/pack200/src/test/java/org/apache/harmony/unpack200/tests/ClassVersionTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/pack200/src/test/java/org/apache/harmony/unpack200/tests/ClassVersionTest.java
Mon Apr 14 09:33:38 2008
@@ -30,7 +30,7 @@
 
     public void testCorrectVersionOfSegment() throws IOException {
         InputStream in = Segment.class
-                .getResourceAsStream("/org/apache/harmony/pack200/Segment.class");
+                .getResourceAsStream("/org/apache/harmony/unpack200/Segment.class");
         DataInputStream din = new DataInputStream(in);
 
         assertEquals(0xCAFEBABE, din.readInt());
@@ -41,7 +41,7 @@
 
     public void testCorrectVersionOfTest() throws IOException {
         InputStream in = Segment.class
-                .getResourceAsStream("/org/apache/harmony/pack200/tests/ClassVersionTest.class");
+                .getResourceAsStream("/org/apache/harmony/unpack200/tests/ClassVersionTest.class");
         DataInputStream din = new DataInputStream(in);
 
         assertEquals(0xCAFEBABE, din.readInt());
@@ -55,7 +55,7 @@
         // tests that both the file is on the classpath and that it's been
         // compiled correctly, but without actually loading the class
         InputStream in = Segment.class
-                .getResourceAsStream("/org/apache/harmony/pack200/Pack200Adapter.class");
+                .getResourceAsStream("/org/apache/harmony/unpack200/Pack200Adapter.class");
         if (in != null) { // If running in Eclipse and Java5 stuff not
             // built/available
             DataInputStream din = new DataInputStream(in);

Modified: harmony/enhanced/classlib/trunk/modules/pack200/src/test/java/org/apache/harmony/unpack200/tests/SegmentTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/pack200/src/test/java/org/apache/harmony/unpack200/tests/SegmentTest.java?rev=647886&r1=647885&r2=647886&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/pack200/src/test/java/org/apache/harmony/unpack200/tests/SegmentTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/pack200/src/test/java/org/apache/harmony/unpack200/tests/SegmentTest.java
Mon Apr 14 09:33:38 2008
@@ -86,12 +86,12 @@
 				.exec(
 						"java -cp "
 								+ file.getName()
-								+ " org.apache.harmony.archive.tests.internal.unpack200.HelloWorld",
+								+ " org.apache.harmony.archive.tests.internal.pack200.HelloWorld",
 						new String[] {}, file.getParentFile());
 		BufferedReader reader = new BufferedReader(new InputStreamReader(
 				process.getInputStream()));
 		String line = reader.readLine();
-		assertEquals(line, "Hello world");
+		assertEquals("Hello world", line);
 	}
 
 }



Mime
View raw message