harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r463314 - in /incubator/harmony/enhanced/classlib/trunk/modules: jndi/src/test/java/org/apache/harmony/jndi/tests/javax/naming/event/ luni/src/test/java/tests/api/java/net/ swing/src/test/api/java.injected/javax/swing/text/html/parser/ swin...
Date Thu, 12 Oct 2006 16:43:52 GMT
Author: hindessm
Date: Thu Oct 12 09:43:49 2006
New Revision: 463314

URL: http://svn.apache.org/viewvc?view=rev&rev=463314
Log:
Fixing typos: excepted => expected.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/jndi/src/test/java/org/apache/harmony/jndi/tests/javax/naming/event/NamingEventTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/InetAddressTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/parser/DTDTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/parser/Utils.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JEditorPaneTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JEditorPane_MultithreadedTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JFormattedTextFieldTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JFormattedTextField_AbstractFormatterTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JPasswordFieldTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/TransferHandlerTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/DefaultFormatterTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/InternationalFormatterTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/JTextComponentTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/JTextComponent_IMLocationTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/JTextComponent_MultithreadedTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/MaskFormatterTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/PasswordViewTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/UtilitiesTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/StateEditTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/jndi/src/test/java/org/apache/harmony/jndi/tests/javax/naming/event/NamingEventTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/jndi/src/test/java/org/apache/harmony/jndi/tests/javax/naming/event/NamingEventTest.java?view=diff&rev=463314&r1=463313&r2=463314
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/jndi/src/test/java/org/apache/harmony/jndi/tests/javax/naming/event/NamingEventTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/jndi/src/test/java/org/apache/harmony/jndi/tests/javax/naming/event/NamingEventTest.java
Thu Oct 12 09:43:49 2006
@@ -67,7 +67,7 @@
 
         try {
             new NamingEvent(null, NamingEvent.OBJECT_CHANGED, binding1, binding2, "anything");
-            fail("IllegalArgumentException excepted");
+            fail("IllegalArgumentException expected");
         } catch (IllegalArgumentException e) {
         }
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/InetAddressTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/InetAddressTest.java?view=diff&rev=463314&r1=463313&r2=463314
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/InetAddressTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/InetAddressTest.java
Thu Oct 12 09:43:49 2006
@@ -377,7 +377,7 @@
 			InetAddress addr = InetAddress.getByAddress(addressStr, ipAddress);
 			addr = InetAddress.getByAddress(ipAddress);
 		} catch (UnknownHostException e) {
-			fail("Unexcepted problem creating IP Address "
+			fail("Unexpected problem creating IP Address "
 					+ ipAddress.length);
 		}
 
@@ -388,7 +388,7 @@
 			InetAddress addr = InetAddress.getByAddress(addressStr, ipAddress2);
 			addr = InetAddress.getByAddress(ipAddress);
 		} catch (UnknownHostException e) {
-			fail("Unexcepted problem creating IP Address "
+			fail("Unexpected problem creating IP Address "
 					+ ipAddress.length);
 		}
 	}

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/parser/DTDTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/parser/DTDTest.java?view=diff&rev=463314&r1=463313&r2=463314
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/parser/DTDTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/parser/DTDTest.java
Thu Oct 12 09:43:49 2006
@@ -127,7 +127,7 @@
             }
 
           } catch (IOException e) {
-              assertFalse("Unexcepted IOException", true);
+              assertFalse("Unexpected IOException", true);
           }
     }
 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/parser/Utils.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/parser/Utils.java?view=diff&rev=463314&r1=463313&r2=463314
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/parser/Utils.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/parser/Utils.java
Thu Oct 12 09:43:49 2006
@@ -151,7 +151,7 @@
             return input.readObject();
         } catch (Exception e) {
              e.printStackTrace();
-             TestCase.assertFalse("unexcepted Exception", true);
+             TestCase.assertFalse("unexpected Exception", true);
         }
 
         return null;
@@ -346,7 +346,7 @@
                                          .getResourceAsStream(name)));
         } catch (IOException e) {
             e.printStackTrace();
-            TestCase.assertFalse("Unexcepted IOException", true);
+            TestCase.assertFalse("Unexpected IOException", true);
         }
     }
 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JEditorPaneTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JEditorPaneTest.java?view=diff&rev=463314&r1=463313&r2=463314
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JEditorPaneTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JEditorPaneTest.java
Thu Oct 12 09:43:49 2006
@@ -85,7 +85,7 @@
         try {
             tmpUrl = new URL("http://www.apache.org/");
         } catch (final MalformedURLException e) {
-            assertFalse("unexcepted exception :" + e.getMessage(), true);
+            assertFalse("unexpected exception :" + e.getMessage(), true);
         }
         TEST_URL = tmpUrl;
     }
@@ -284,7 +284,7 @@
             doc.insertString(0, "testReplaceSelection", as1);
             doc.insertString(4, "INSERT", as2);
         } catch (final BadLocationException e) {
-            assertFalse("unexcepted exception :" + e.getMessage(), true);
+            assertFalse("unexpected exception :" + e.getMessage(), true);
         }
         //temporarily commented-out: HTMLEditorKit not implemented
         //jep.setEditorKit(new RTFEditorKit());
@@ -433,7 +433,7 @@
         try {
             jep = new JEditorPane("http://www.apache.org/");
         } catch (IOException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         }
         checkBaseValues("javax.swing.text.html.HTMLDocument",
                         "javax.swing.text.html.HTMLEditorKit", "text/html",
@@ -459,7 +459,7 @@
         try {
             jep = new JEditorPane(TEST_URL);
         } catch (IOException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         }
         checkBaseValues("javax.swing.text.html.HTMLDocument",
                         "javax.swing.text.html.HTMLEditorKit", "text/html",
@@ -574,7 +574,7 @@
         try {
             jep.setPage(TEST_URL);
         } catch (final IOException e) {
-            assertTrue("Unexcepted exception :" + e.getMessage(), false);
+            assertTrue("Unexpected exception :" + e.getMessage(), false);
         }
         //assertEquals(TEST_URL, jep.getPage());
     }
@@ -587,7 +587,7 @@
         try {
             jep.setPage(testUrlString);
         } catch (final IOException e) {
-            assertTrue("Unexcepted exception :" + e.getMessage(), false);
+            assertTrue("Unexpected exception :" + e.getMessage(), false);
         }
         assertEquals(testUrlString, jep.getPage().toString());
     }
@@ -601,7 +601,7 @@
             //4825653
             //System.out.println(jep.getDocument().getProperty(Document.StreamDescriptionProperty));
         } catch (final IOException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         }
     }*/
 
@@ -615,13 +615,13 @@
         try {
             jep.read(stream, "text/html");
         } catch (IOException e) {
-            assertFalse("Unexcepted exception :", true);
+            assertFalse("Unexpected exception :", true);
         }
         assertEquals("text/html", jep.getContentType());
         /*
           * String docContent = null; try { Document doc = jep.getDocument();
           * docContent = doc.getText(0, doc.getLength()); }
-          * catch(BadLocationException e){ assertFalse("Unexcepted exception :",
+          * catch(BadLocationException e){ assertFalse("Unexpected exception :",
           * true); } System.out.println("_____" + docContent + "_____"); String
           * temp = " \nThank you for the quote you sentreguarding account
           * #99999999999999. &160;I just have a couple of questions.Please let
@@ -653,7 +653,7 @@
         try {
             jep.read(stream, "text/plain");
         } catch (IOException e) {
-            assertFalse("Unexcepted exception :", true);
+            assertFalse("Unexpected exception :", true);
         }
         assertEquals("text/plain", jep.getContentType());
         String docContent = null;
@@ -670,7 +670,7 @@
         try {
             jep.read(stream, "text/rtf");
         } catch (IOException e) {
-            assertFalse("Unexcepted exception :", true);
+            assertFalse("Unexpected exception :", true);
         }
         assertEquals("text/rtf", jep.getContentType());
         String docContent = null;
@@ -678,7 +678,7 @@
             Document doc = jep.getDocument();
             docContent = doc.getText(0, doc.getLength());
         } catch (BadLocationException e) {
-            assertFalse("Unexcepted exception :", true);
+            assertFalse("Unexpected exception :", true);
         }
         assertEquals("blablabla\n", docContent);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JEditorPane_MultithreadedTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JEditorPane_MultithreadedTest.java?view=diff&rev=463314&r1=463313&r2=463314
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JEditorPane_MultithreadedTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JEditorPane_MultithreadedTest.java
Thu Oct 12 09:43:49 2006
@@ -150,7 +150,7 @@
             doc.insertString(0, "testReplaceSelection", as1);
             doc.insertString(4, "INSERT", as2);
         } catch (final BadLocationException e) {
-            assertFalse("unexcepted exception :" + e.getMessage(), true);
+            assertFalse("unexpected exception :" + e.getMessage(), true);
         }
         SwingUtilities.invokeAndWait(new Runnable() {
             public void run() {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JFormattedTextFieldTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JFormattedTextFieldTest.java?view=diff&rev=463314&r1=463313&r2=463314
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JFormattedTextFieldTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JFormattedTextFieldTest.java
Thu Oct 12 09:43:49 2006
@@ -437,7 +437,7 @@
         try {
            tf.commitEdit();
         } catch (ParseException e) {
-            assertTrue("Unexcepted exception: ", false);
+            assertTrue("Unexpected exception: ", false);
         }
         assertEquals(new Long(678), tf.getValue());
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JFormattedTextField_AbstractFormatterTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JFormattedTextField_AbstractFormatterTest.java?view=diff&rev=463314&r1=463313&r2=463314
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JFormattedTextField_AbstractFormatterTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JFormattedTextField_AbstractFormatterTest.java
Thu Oct 12 09:43:49 2006
@@ -125,7 +125,7 @@
         try {
             clone = formatter.clone();
         } catch (CloneNotSupportedException e) {
-            assertTrue("UnexceptedException: " + e.getMessage(), false);
+            assertTrue("UnexpectedException: " + e.getMessage(), false);
         }
         assertTrue(clone instanceof JFormattedTextField.AbstractFormatter);
         assertNull(((JFormattedTextField.AbstractFormatter)clone)

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JPasswordFieldTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JPasswordFieldTest.java?view=diff&rev=463314&r1=463313&r2=463314
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JPasswordFieldTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/JPasswordFieldTest.java
Thu Oct 12 09:43:49 2006
@@ -62,9 +62,9 @@
         try {
            data = transferable.getTransferData(flavor);
         } catch (UnsupportedFlavorException e) {
-            assertTrue("Unexcepted exception: ", false);
+            assertTrue("Unexpected exception: ", false);
         } catch (IOException e) {
-            assertTrue("Unexcepted exception: ", false);
+            assertTrue("Unexpected exception: ", false);
         }
         return data;
     }
@@ -174,7 +174,7 @@
            assertEquals("", pf.getText(1, 0));
            assertEquals("c", pf.getText(2, 1));
         } catch (BadLocationException e) {
-            assertTrue("Unexcepted exception: ", false);
+            assertTrue("Unexpected exception: ", false);
         }
 
         try {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/TransferHandlerTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/TransferHandlerTest.java?view=diff&rev=463314&r1=463313&r2=463314
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/TransferHandlerTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/TransferHandlerTest.java
Thu Oct 12 09:43:49 2006
@@ -120,9 +120,9 @@
             assertEquals(Color.RED, transferable.getTransferData(
                                      transferable.getTransferDataFlavors()[0]));
         } catch (UnsupportedFlavorException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         } catch (IOException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         }
 
         JTextArea distArea = new JTextArea();
@@ -166,7 +166,7 @@
                                  new DataFlavor[] {flavor}));
 
         } catch (ClassNotFoundException e) {
-            assertFalse("Unexcepted exception : " + e.getMessage(), true);
+            assertFalse("Unexpected exception : " + e.getMessage(), true);
         }
     }
 
@@ -182,7 +182,7 @@
                          + "class=java.lang.String");
 
         } catch (ClassNotFoundException e) {
-            assertFalse("Unexcepted exception : " + e.getMessage(), true);
+            assertFalse("Unexpected exception : " + e.getMessage(), true);
         }
 
         try {
@@ -210,7 +210,7 @@
                          + "class=java.awt.Color");
 
         } catch (ClassNotFoundException e) {
-            assertFalse("Unexcepted exception : " + e.getMessage(), true);
+            assertFalse("Unexpected exception : " + e.getMessage(), true);
         }
 
         try {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/DefaultFormatterTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/DefaultFormatterTest.java?view=diff&rev=463314&r1=463313&r2=463314
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/DefaultFormatterTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/DefaultFormatterTest.java
Thu Oct 12 09:43:49 2006
@@ -62,7 +62,7 @@
         try {
             clone = formatter.clone();
         } catch (CloneNotSupportedException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         }
 
         assertTrue(clone instanceof DefaultFormatter);
@@ -88,7 +88,7 @@
             value = new Integer(123);
             assertEquals(value.toString(), formatter.valueToString(value));
         } catch (ParseException e) {
-            assertTrue("Unexcepted exception: " + e.getMessage(), false);
+            assertTrue("Unexpected exception: " + e.getMessage(), false);
         }
     }
 
@@ -192,7 +192,7 @@
 
             assertEquals(numFormatter, ftf.getFormatter());
         } catch(BadLocationException e) {
-            assertTrue("Unexcepted exception: " + e.getMessage(), false);
+            assertTrue("Unexpected exception: " + e.getMessage(), false);
         }
     }
 
@@ -217,7 +217,7 @@
             assertEquals("789xxx456", ftf.getText());
             assertEquals(formatter, ftf.getFormatter());
         } catch(BadLocationException e) {
-            assertTrue("Unexcepted exception: " + e.getMessage(), false);
+            assertTrue("Unexpected exception: " + e.getMessage(), false);
         }
     }
 
@@ -242,7 +242,7 @@
             assertEquals("java.lang.String",
                          formatter.stringToValue("546").getClass().getName());
         } catch (ParseException e) {
-            assertTrue("Unexcepted exception: " + e.getMessage(), false);
+            assertTrue("Unexpected exception: " + e.getMessage(), false);
         }
 
         try {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/InternationalFormatterTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/InternationalFormatterTest.java?view=diff&rev=463314&r1=463313&r2=463314
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/InternationalFormatterTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/InternationalFormatterTest.java
Thu Oct 12 09:43:49 2006
@@ -92,7 +92,7 @@
         try {
             clone = formatter.clone();
         } catch (CloneNotSupportedException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         }
 
         assertTrue(clone instanceof InternationalFormatter);
@@ -123,7 +123,7 @@
             formatter.setMinimum(new Long(20));
             assertEquals(new Long(21), formatter.stringToValue("21"));
         } catch (ParseException e) {
-            assertTrue("Unexcepted exception: ", false);
+            assertTrue("Unexpected exception: ", false);
         }
 
         try {
@@ -154,7 +154,7 @@
             formatter.setMinimum(null);
             assertEquals(Boolean.TRUE, formatter.stringToValue("true"));
         } catch (ParseException e) {
-            assertTrue("Unexcepted exception: ", false);
+            assertTrue("Unexpected exception: ", false);
         }
     }
 
@@ -178,7 +178,7 @@
             value = new Integer(345);
             assertEquals(format.format(value), formatter.valueToString(value));
         } catch (ParseException e) {
-            assertTrue("Unexcepted exception: ", false);
+            assertTrue("Unexpected exception: ", false);
         }
     }
 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/JTextComponentTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/JTextComponentTest.java?view=diff&rev=463314&r1=463313&r2=463314
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/JTextComponentTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/JTextComponentTest.java
Thu Oct 12 09:43:49 2006
@@ -431,7 +431,7 @@
             s = e.getMessage();
         }
 
-        assertFalse("Unexcepted exception: " + s, bWasException);
+        assertFalse("Unexpected exception: " + s, bWasException);
         assertTrue(str.equals("Com"));
     }
 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/JTextComponent_IMLocationTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/JTextComponent_IMLocationTest.java?view=diff&rev=463314&r1=463313&r2=463314
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/JTextComponent_IMLocationTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/JTextComponent_IMLocationTest.java
Thu Oct 12 09:43:49 2006
@@ -193,7 +193,7 @@
             }
 
         } catch(BadLocationException e){
-            assertFalse("unexceptedException",true);
+            assertFalse("unexpectedException",true);
         }
     }
 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/JTextComponent_MultithreadedTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/JTextComponent_MultithreadedTest.java?view=diff&rev=463314&r1=463313&r2=463314
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/JTextComponent_MultithreadedTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/JTextComponent_MultithreadedTest.java
Thu Oct 12 09:43:49 2006
@@ -134,7 +134,7 @@
 
             sample = jtc.getUI().modelToView(jtc, 3);
         } catch (BadLocationException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         }
 
         assertNotNull(sample);
@@ -234,7 +234,7 @@
 
             rect = jep.modelToView(101);
         } catch (BadLocationException e) {
-            assertFalse("Unexcepted exception :" + e.getMessage(), true);
+            assertFalse("Unexpected exception :" + e.getMessage(), true);
         }
 
         scrollableIncrementTest(jep, rect);

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/MaskFormatterTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/MaskFormatterTest.java?view=diff&rev=463314&r1=463313&r2=463314
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/MaskFormatterTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/MaskFormatterTest.java
Thu Oct 12 09:43:49 2006
@@ -68,7 +68,7 @@
             assertEquals(mask, formatter.getMask());
             checkMainProperties();
         } catch (ParseException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         }
         //API says that's it's possible ParseException in this constructor.
         //I don't know when it's possible.
@@ -81,7 +81,7 @@
             assertEquals(mask, formatter.getMask());
             assertEquals("0xa-B", formatter.stringToValue("0xa-B"));
         } catch (ParseException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         }
 
         try {
@@ -100,7 +100,7 @@
             assertEquals("#2", formatter.getInvalidCharacters());
             formatter.stringToValue("rrrr5");
         } catch (ParseException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         }
 
         try {
@@ -125,7 +125,7 @@
             assertEquals("AAA$%$abc^^^***",
                          formatter.valueToString("AAA"));
         } catch (ParseException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         }
     }
 
@@ -140,7 +140,7 @@
             assertEquals("456$%$6bc^^^&&&",
                          formatter.valueToString("456$%$6"));
         } catch (ParseException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         }
     }
 
@@ -151,7 +151,7 @@
             assertEquals("012345678abc", formatter.getValidCharacters());
             formatter.stringToValue("acb4");
         } catch (ParseException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         }
 
         try {
@@ -184,7 +184,7 @@
             assertEquals("4155551212", formatter.stringToValue(text));
 
         } catch (ParseException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         }
     }
 
@@ -196,7 +196,7 @@
             assertEquals(placeholder, formatter.getPlaceholder());
             assertEquals("26-ka-sd", formatter.valueToString("26"));
         } catch (ParseException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         }
     }
 
@@ -209,7 +209,7 @@
             assertEquals(placeholder, formatter.getPlaceholder());
             assertEquals("21-ka-sd", formatter.valueToString("21"));
         } catch (ParseException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         }
     }
 
@@ -230,7 +230,7 @@
             formatter.setPlaceholderCharacter('*');
             assertEquals("-^23-**-**", formatter.valueToString("23"));
         } catch (ParseException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         }
     }
 
@@ -239,7 +239,7 @@
             formatter.setMask("'Uw''et'67H'H");
             formatter.stringToValue("Uw'et678H");
         } catch (ParseException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         }
     }
 
@@ -249,7 +249,7 @@
             assertEquals("567'", formatter.getMask());
             assertEquals("567", formatter.stringToValue("567"));
         } catch (ParseException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         }
         try {
             formatter.stringToValue("567'");
@@ -266,7 +266,7 @@
             formatter.setValueContainsLiteralCharacters(false);
             assertEquals("U4567'H", formatter.valueToString("7"));
         } catch (ParseException e) {
-            assertFalse("Unexcepted exception: " + e.getMessage(), true);
+            assertFalse("Unexpected exception: " + e.getMessage(), true);
         }
     }
 
@@ -303,7 +303,7 @@
            formatter.setPlaceholder("aaaaa");
            formatter.setPlaceholderCharacter('x');
         } catch (ParseException e) {
-            assertTrue("Unexcepted exception: " + e.getMessage(), false);
+            assertTrue("Unexpected exception: " + e.getMessage(), false);
         }
     }
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/PasswordViewTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/PasswordViewTest.java?view=diff&rev=463314&r1=463313&r2=463314
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/PasswordViewTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/PasswordViewTest.java
Thu Oct 12 09:43:49 2006
@@ -115,7 +115,7 @@
            assertEquals(textWidth,
                         view.drawSelectedText(g, 0, y, 0, length));
         } catch (BadLocationException e) {
-            assertTrue("Unexcepted exception: ", false);
+            assertTrue("Unexpected exception: ", false);
         }
         if (isHarmony()) {
             assertEquals(color, g.getColor());
@@ -132,7 +132,7 @@
            assertEquals(textWidth,
                         view.drawSelectedText(g, 0, y, 0, length));
                    } catch (BadLocationException e) {
-            assertTrue("Unexcepted exception: ", false);
+            assertTrue("Unexpected exception: ", false);
         }
         if (isHarmony()) {
             assertEquals(old, g.getColor());

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/UtilitiesTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/UtilitiesTest.java?view=diff&rev=463314&r1=463313&r2=463314
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/UtilitiesTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/text/UtilitiesTest.java
Thu Oct 12 09:43:49 2006
@@ -224,7 +224,7 @@
                 try {
                     doc.getText(start, (end - start), seg);
                 } catch (BadLocationException e) {
-                    assertTrue("Unexcepted Exception: " + e.getMessage(), false);
+                    assertTrue("Unexpected Exception: " + e.getMessage(), false);
                 }
                 FontMetrics fm = g.getFontMetrics();
                 assertEquals(Utilities.drawTabbedText(seg, 23, 24, g, te, j),
@@ -265,7 +265,7 @@
                 try {
                     doc.getText(start, end - start, seg);
                 } catch (BadLocationException e) {
-                    assertTrue("Unexcepted Exception: " + e.getMessage(), false);
+                    assertTrue("Unexpected Exception: " + e.getMessage(), false);
                 }
                 assertEquals(Utilities.getTabbedTextWidth(seg, fm, 23, te, j),
                              getTabbedTextWidth(seg, fm, 23, te, j));
@@ -333,7 +333,7 @@
             try {
                 doc.getText(start, (end - start), seg);
             } catch (BadLocationException e) {
-                assertTrue("Unexcepted Exception: " + e.getMessage(), false);
+                assertTrue("Unexpected Exception: " + e.getMessage(), false);
             }
             int textOffset = start + 9;
 
@@ -386,7 +386,7 @@
             try {
                 doc.getText(start, (end - start), seg);
             } catch (BadLocationException e) {
-                assertTrue("Unexcepted Exception: " + e.getMessage(), false);
+                assertTrue("Unexpected Exception: " + e.getMessage(), false);
             }
 
             int offset = start + 8;
@@ -428,7 +428,7 @@
             try {
                 doc.getText(start, (end - start), seg);
             } catch (BadLocationException e) {
-                assertTrue("Unexcepted Exception: " + e.getMessage(), false);
+                assertTrue("Unexpected Exception: " + e.getMessage(), false);
             }
 
             int textWidth = Utilities.getTabbedTextWidth(seg, fm, 23, te,
@@ -468,7 +468,7 @@
             try {
                 doc.getText(start, (end - start), seg);
             } catch (BadLocationException e) {
-                assertTrue("Unexcepted Exception: " + e.getMessage(), false);
+                assertTrue("Unexpected Exception: " + e.getMessage(), false);
             }
             int offset = start + 6;
             int textWidth = Utilities.getTabbedTextWidth(seg, fm, 23, te,
@@ -531,7 +531,7 @@
                 try {
                     doc.getText(start, (end - start), seg);
                 } catch (BadLocationException e) {
-                    assertTrue("Unexcepted Exception: " + e.getMessage(), false);
+                    assertTrue("Unexpected Exception: " + e.getMessage(), false);
                 }
 
                 int textWidth = Utilities
@@ -667,7 +667,7 @@
                         + appendix);
 
             } catch (BadLocationException e) {
-                assertFalse("Unexcepted exception: " + e.getMessage(), true);
+                assertFalse("Unexpected exception: " + e.getMessage(), true);
             }
             assertEquals(utilAboveT, utilAbove);
             assertEquals(utilAbove1T, utilAbove1);

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/StateEditTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/StateEditTest.java?view=diff&rev=463314&r1=463313&r2=463314
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/StateEditTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/StateEditTest.java
Thu Oct 12 09:43:49 2006
@@ -121,7 +121,7 @@
         } catch (CannotRedoException e) {
             bWasException = true;
         }
-        assertTrue("ExceptedException", bWasException);
+        assertTrue("ExpectedException", bWasException);
         se1.undo();
 
         obj.wasCallRestore = false;



Mime
View raw message