harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r620762 - /harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ScannerTest.java
Date Tue, 12 Feb 2008 11:13:56 GMT
Author: odeakin
Date: Tue Feb 12 03:13:49 2008
New Revision: 620762

URL: http://svn.apache.org/viewvc?rev=620762&view=rev
Log:
Add missing line for HARMONY-4774 test

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ScannerTest.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ScannerTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ScannerTest.java?rev=620762&r1=620761&r2=620762&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ScannerTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ScannerTest.java
Tue Feb 12 03:13:49 2008
@@ -5595,11 +5595,12 @@
                 return 6;
             }
         }
-        s = new Scanner(new CountReadable());
+        CountReadable cr = new CountReadable();
+        s = new Scanner(cr);
         result = s.nextLine();
         // We expect read() to be called only once, otherwise we see the problem
         // when reading from System.in described in Harmony-4774
-        assertEquals(1, cis.counter);
+        assertEquals(1, cr.counter);
         assertEquals("hello", result);        
     }
     



Mime
View raw message