harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ton...@apache.org
Subject svn commit: r562067 - in /harmony/enhanced/classlib/trunk/modules/beans/src/test: java/org/apache/harmony/beans/tests/java/beans/BeansTest.java support/java/org/apache/harmony/beans/tests/support/mock/EmptySerBean.ser
Date Thu, 02 Aug 2007 10:10:13 GMT
Author: tonywu
Date: Thu Aug  2 03:10:13 2007
New Revision: 562067

URL: http://svn.apache.org/viewvc?view=rev&rev=562067
Log:
remove duplicate testcase, and a new one to test empty ser file

Added:
    harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/EmptySerBean.ser
Modified:
    harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/BeansTest.java

Modified: harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/BeansTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/BeansTest.java?view=diff&rev=562067&r1=562066&r2=562067
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/BeansTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/BeansTest.java
Thu Aug  2 03:10:13 2007
@@ -430,15 +430,9 @@
         assertFalse(Beans.isInstanceOf(bean, targetType));
     }
 
-    public void test_instantiate_with_corrupted_serialization_file()
+    public void test_instantiate_with_empty_serialization_file()
             throws Exception {
-        final String BEANS_NAME = "TestBean";
-
-        // create a corrupted serialization file with name TestBean.ser
-        File file = new File(BEANS_NAME + ".ser");
-        file.deleteOnExit();
-        FileOutputStream fout = new FileOutputStream(file);
-        fout.close();
+        final String BEANS_NAME = "org/apache/harmony/beans/tests/support/mock/EmptySerBean.ser";
 
         try {
             Beans.instantiate(null, BEANS_NAME);

Added: harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/EmptySerBean.ser
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/EmptySerBean.ser?view=auto&rev=562067
==============================================================================
    (empty)



Mime
View raw message