You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by bi...@apache.org on 2007/11/17 22:45:28 UTC

svn commit: r596007 - /incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/JsHttpRequestTest.java

Author: bimargulies
Date: Sat Nov 17 13:45:27 2007
New Revision: 596007

URL: http://svn.apache.org/viewvc?rev=596007&view=rev
Log:
continue to tweak.

Modified:
    incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/JsHttpRequestTest.java

Modified: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/JsHttpRequestTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/JsHttpRequestTest.java?rev=596007&r1=596006&r2=596007&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/JsHttpRequestTest.java (original)
+++ incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/JsHttpRequestTest.java Sat Nov 17 13:45:27 2007
@@ -25,6 +25,7 @@
 
 import org.apache.cxf.Bus;
 import org.apache.cxf.test.AbstractCXFSpringTest;
+import org.junit.Before;
 import org.junit.Test;
 import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
 import org.springframework.context.support.GenericApplicationContext;
@@ -59,8 +60,8 @@
     }
     
     
-    
-    private
+    @Before
+    public 
     void setupRhino() throws Exception {
         testUtilities.setBus(getBean(Bus.class, "cxf"));
         testUtilities.initializeRhino();
@@ -70,7 +71,6 @@
     
     @Test
     public void testInvalidURI() throws Exception {
-        setupRhino();
         testUtilities.rhinoCallExpectingException("SYNTAX_ERR", "testOpaqueURI");
         testUtilities.rhinoCallExpectingException("SYNTAX_ERR", "testNonAbsolute");
         testUtilities.rhinoCallExpectingException("SYNTAX_ERR", "testNonHttp");
@@ -78,7 +78,6 @@
     
     @Test
     public void testSequencing() throws Exception {
-        setupRhino();
         testUtilities.rhinoCallExpectingException("INVALID_STATE_ERR", "testSendNotOpenError");
     }