harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ton...@apache.org
Subject svn commit: r557124 - in /harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans: PropertyEditorManagerRegressionTest.java PropertyEditorManagerTest.java
Date Wed, 18 Jul 2007 02:55:27 GMT
Author: tonywu
Date: Tue Jul 17 19:55:26 2007
New Revision: 557124

URL: http://svn.apache.org/viewvc?view=rev&rev=557124
Log:
restore the default search path when tear down in order to make sure there is no dependency
between testcases

Modified:
    harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyEditorManagerRegressionTest.java
    harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyEditorManagerTest.java

Modified: harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyEditorManagerRegressionTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyEditorManagerRegressionTest.java?view=diff&rev=557124&r1=557123&r2=557124
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyEditorManagerRegressionTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyEditorManagerRegressionTest.java
Tue Jul 17 19:55:26 2007
@@ -105,4 +105,13 @@
             //expected.
         }
     }
+    String[] defaultSearchPath;
+    
+    public void setUp(){
+        defaultSearchPath = PropertyEditorManager.getEditorSearchPath();
+    }
+    
+    public void tearDown(){
+        PropertyEditorManager.setEditorSearchPath(defaultSearchPath);
+    }
 }

Modified: harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyEditorManagerTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyEditorManagerTest.java?view=diff&rev=557124&r1=557123&r2=557124
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyEditorManagerTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyEditorManagerTest.java
Tue Jul 17 19:55:26 2007
@@ -724,4 +724,14 @@
         assertNotNull("No property editor found", pe);
         assertTrue(pe instanceof AnotherSamplePropertyEditor);
     }
+    
+    String[] defaultSearchPath;
+    
+    public void setUp(){
+        defaultSearchPath = PropertyEditorManager.getEditorSearchPath();
+    }
+    
+    public void tearDown(){
+        PropertyEditorManager.setEditorSearchPath(defaultSearchPath);
+    }
 }



Mime
View raw message