harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r450874 - in /incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans: XMLEncoderTest.java beancontext/BeanContextServicesSupportTest.java beancontext/BeanContextSupportTest.java
Date Thu, 28 Sep 2006 14:44:37 GMT
Author: hindessm
Date: Thu Sep 28 07:44:37 2006
New Revision: 450874

URL: http://svn.apache.org/viewvc?view=rev&rev=450874
Log:
Applying patch from '[#HARMONY-1604] [classlib][beans] fixes for "try-catch"
bugs in some tests' with minor modification as agree in JIRA discussion.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/XMLEncoderTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextServicesSupportTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextSupportTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/XMLEncoderTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/XMLEncoderTest.java?view=diff&rev=450874&r1=450873&r2=450874
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/XMLEncoderTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/XMLEncoderTest.java
Thu Sep 28 07:44:37 2006
@@ -328,13 +328,9 @@
 		assertNull(enc.get(i));
 	}
 
-	public void testXMLEncoder_Null() {
-		try {
-			new XMLEncoder(null);
-		} catch (NullPointerException e) {
-			// expected
-		}
-	}
+        public void testXMLEncoder_Null() throws NullPointerException {
+                new XMLEncoder(null);
+        }
 
 	public void testGetOwner() {
 		XMLEncoder enc = new XMLEncoder(System.out);

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextServicesSupportTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextServicesSupportTest.java?view=diff&rev=450874&r1=450873&r2=450874
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextServicesSupportTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextServicesSupportTest.java
Thu Sep 28 07:44:37 2006
@@ -736,6 +736,7 @@
         try {
             support.getService(child, requestor, Collection.class, selector,
                     null);
+            fail("NPE expected");
         } catch (NullPointerException e) {
             // expected
         }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextSupportTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextSupportTest.java?view=diff&rev=450874&r1=450873&r2=450874
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextSupportTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextSupportTest.java
Thu Sep 28 07:44:37 2006
@@ -1385,6 +1385,7 @@
         support.records.assertRecord("initialize", null);
         try {
             support.removeAll(Collections.EMPTY_LIST);
+            fail("UnsupportedOperationException expected");
         } catch (UnsupportedOperationException e) {
             // expected
         }



Mime
View raw message