harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r479460 - in /harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common: javax/swing/text/html/parser/ org/apache/harmony/swing/ org/apache/harmony/swing/tests/ org/apache/harmony/swing/tests/javax/ org/apache/harmony/swing/tes...
Date Sun, 26 Nov 2006 23:43:33 GMT
Author: ndbeyer
Date: Sun Nov 26 15:43:32 2006
New Revision: 479460

URL: http://svn.apache.org/viewvc?view=rev&rev=479460
Log:
Move DTDTest from 'common' to the prescribed package name, so that it doesn't conflict with
'injected' test

Added:
    harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/org/apache/harmony/swing/
    harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/org/apache/harmony/swing/tests/
    harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/org/apache/harmony/swing/tests/javax/
    harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/org/apache/harmony/swing/tests/javax/swing/
    harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/org/apache/harmony/swing/tests/javax/swing/text/
    harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/org/apache/harmony/swing/tests/javax/swing/text/html/
    harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/org/apache/harmony/swing/tests/javax/swing/text/html/parser/
    harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/org/apache/harmony/swing/tests/javax/swing/text/html/parser/DTDTest.java
      - copied, changed from r479400, harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/html/parser/DTDTest.java
Removed:
    harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/html/parser/DTDTest.java

Copied: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/org/apache/harmony/swing/tests/javax/swing/text/html/parser/DTDTest.java
(from r479400, harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/html/parser/DTDTest.java)
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/org/apache/harmony/swing/tests/javax/swing/text/html/parser/DTDTest.java?view=diff&rev=479460&p1=harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/html/parser/DTDTest.java&r1=479400&p2=harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/org/apache/harmony/swing/tests/javax/swing/text/html/parser/DTDTest.java&r2=479460
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/html/parser/DTDTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/org/apache/harmony/swing/tests/javax/swing/text/html/parser/DTDTest.java
Sun Nov 26 15:43:32 2006
@@ -15,43 +15,40 @@
  *  limitations under the License.
  */
 
-package javax.swing.text.html.parser;
+package org.apache.harmony.swing.tests.javax.swing.text.html.parser;
 
 import javax.swing.text.html.parser.DTD;
 import javax.swing.text.html.parser.Element;
-
 import junit.framework.TestCase;
 
 public class DTDTest extends TestCase {
+    private DTD dtd;
 
-    DTD dtd = null;
-    
     @Override
     protected void setUp() throws Exception {
         super.setUp();
         dtd = DTD.getDTD("testDTD");
     }
 
-    public void testGetElementLowerOutOfBounds(){
-        try{
+    public void testGetElementLowerOutOfBounds() {
+        try {
             Element e = dtd.getElement(-1);
-            
-            fail("IndexOutOfBoundsException wasn't raised as RI, but method returned: "+
e);
-        }catch (IndexOutOfBoundsException e) {
-        }catch (Exception e) {
-            fail(e.getClass().getName() + " raised but IndexOutOfBoundsException had to be
raised");
+            fail("IndexOutOfBoundsException wasn't raised as RI, but method returned: " +
e);
+        } catch (IndexOutOfBoundsException e) {
+        } catch (Exception e) {
+            fail(e.getClass().getName()
+                    + " raised but IndexOutOfBoundsException had to be raised");
         }
     }
-    
-    public void testGetElementUpperOutOfBounds(){
-        try{
+
+    public void testGetElementUpperOutOfBounds() {
+        try {
             Element e = dtd.getElement(dtd.elements.size());
-            
-            fail("IndexOutOfBoundsException didn't raised as RI, but method returned: "+
e);
-        }catch (IndexOutOfBoundsException e) {
-        }catch (Exception e) {
-            fail(e.getClass().getName() + " raised but IndexOutOfBoundsException had to be
raised");
-        }       
+            fail("IndexOutOfBoundsException didn't raised as RI, but method returned: " +
e);
+        } catch (IndexOutOfBoundsException e) {
+        } catch (Exception e) {
+            fail(e.getClass().getName()
+                    + " raised but IndexOutOfBoundsException had to be raised");
+        }
     }
-    
 }



Mime
View raw message