harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r504110 - /harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/StateEditTest.java
Date Tue, 06 Feb 2007 12:42:21 GMT
Author: apetrenko
Date: Tue Feb  6 04:42:20 2007
New Revision: 504110

URL: http://svn.apache.org/viewvc?view=rev&rev=504110
Log:
Regression test for HARMONY-2844 "[classlib][swing] j.s.undo.StateEdit.init does not throw
NPE on Harmony"
The issue itself was fixed as part of HARMONY-2536

Modified:
    harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/StateEditTest.java

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/StateEditTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/StateEditTest.java?view=diff&rev=504110&r1=504109&r2=504110
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/StateEditTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/StateEditTest.java
Tue Feb  6 04:42:20 2007
@@ -14,10 +14,6 @@
  *  See the License for the specific language governing permissions and
  *  limitations under the License.
  */
-/**
- * @author Evgeniya G. Maenkova
- * @version $Revision$
- */
 package javax.swing.undo;
 
 import java.util.Hashtable;
@@ -94,11 +90,6 @@
         super.setUp();
     }
 
-    @Override
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
     public void testGetPresentationName() {
         assertNull(se1.getPresentationName());
         assertEquals("presentationName", se2.getPresentationName());
@@ -229,6 +220,17 @@
             fail("NullPointerException should have been thrown");
         } catch (NullPointerException e) {
             // Expected
+        }
+    }
+
+    // Regression test for HARMONY-2844
+    public void testInitNull() {
+        StateEdit se = new StateEdit(new SimpleEditable());
+        try {
+            se.init(null, "test");
+            fail("NullPointerException is expected");
+        } catch (NullPointerException e) {
+            // expected
         }
     }
 



Mime
View raw message