harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From regi...@apache.org
Subject svn commit: r901092 - in /harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument: IllegalClassFormatExceptionTest.java UnmodifiableClassExceptionTest.java
Date Wed, 20 Jan 2010 07:38:21 GMT
Author: regisxu
Date: Wed Jan 20 07:37:58 2010
New Revision: 901092

URL: http://svn.apache.org/viewvc?rev=901092&view=rev
Log:
Apply patch for HARMONY-6425: [test] Improve the method coverage rate of unit test for java.lang.instrument

Modified:
    harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/IllegalClassFormatExceptionTest.java
    harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/UnmodifiableClassExceptionTest.java

Modified: harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/IllegalClassFormatExceptionTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/IllegalClassFormatExceptionTest.java?rev=901092&r1=901091&r2=901092&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/IllegalClassFormatExceptionTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/IllegalClassFormatExceptionTest.java
Wed Jan 20 07:37:58 2010
@@ -40,4 +40,15 @@
         IllegalClassFormatException object = new IllegalClassFormatException();
         SerializationTest.verifyGolden(this, object);        
     }
+    
+    /**
+     * @tests java.lang.instrument.IllegalClassFormatException#
+     *        IllegalClassFormatException(java.lang.String)}
+     */
+    public void test_IllegalClassFormatException_LString() {
+        IllegalClassFormatException object = new IllegalClassFormatException(
+                "Some Error Message");
+        assertEquals("Wrong message from constructor(String)",
+                "Some Error Message", object.getMessage());
+    }
 }

Modified: harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/UnmodifiableClassExceptionTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/UnmodifiableClassExceptionTest.java?rev=901092&r1=901091&r2=901092&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/UnmodifiableClassExceptionTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/UnmodifiableClassExceptionTest.java
Wed Jan 20 07:37:58 2010
@@ -40,4 +40,15 @@
         UnmodifiableClassException object = new UnmodifiableClassException();
         SerializationTest.verifyGolden(this, object);
     }
+    
+    /**
+     * @tests java.lang.instrument.UnmodifiableClassException#
+     *        UnmodifiableClassException(java.lang.String)}.
+     */
+    public void test_UnmodifiableClassException_LString() {
+        UnmodifiableClassException object = new UnmodifiableClassException(
+                "Some Error Message");
+        assertEquals("Wrong message from constructor(String)",
+                "Some Error Message", object.getMessage());
+    }
 }



Mime
View raw message