tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r450836 - in /incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy: AsyncInvokerTestCase.java EasyComponentTestCase.java EasyComponentTypeLoaderTestCase.java EasyImplementationTestCase.java
Date Thu, 28 Sep 2006 12:27:30 GMT
Author: antelder
Date: Thu Sep 28 05:27:29 2006
New Revision: 450836

URL: http://svn.apache.org/viewvc?view=rev&rev=450836
Log:
clean up some eclipse warnings and delete unused code

Modified:
    incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy/AsyncInvokerTestCase.java
    incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy/EasyComponentTestCase.java
    incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy/EasyComponentTypeLoaderTestCase.java
    incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy/EasyImplementationTestCase.java

Modified: incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy/AsyncInvokerTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy/AsyncInvokerTestCase.java?view=diff&rev=450836&r1=450835&r2=450836
==============================================================================
--- incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy/AsyncInvokerTestCase.java
(original)
+++ incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy/AsyncInvokerTestCase.java
Thu Sep 28 05:27:29 2006
@@ -45,6 +45,7 @@
  */
 public class AsyncInvokerTestCase extends TestCase {
     
+    @SuppressWarnings("unchecked")
     public void testInvoke() throws Exception {
         EasyInstance instance = createMock(EasyInstance.class);
         expect(instance.invokeTarget("invoke", null)).andReturn(null).once();

Modified: incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy/EasyComponentTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy/EasyComponentTestCase.java?view=diff&rev=450836&r1=450835&r2=450836
==============================================================================
--- incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy/EasyComponentTestCase.java
(original)
+++ incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy/EasyComponentTestCase.java
Thu Sep 28 05:27:29 2006
@@ -6,8 +6,6 @@
 import static org.easymock.EasyMock.replay;
 
 import java.io.IOException;
-import java.io.InputStream;
-import java.net.URL;
 import java.util.ArrayList;
 import java.util.List;
 
@@ -109,8 +107,9 @@
         assertEquals(services, pc.getServiceInterfaces());
     }
 
+    @SuppressWarnings("unchecked")
     public void testCreateAsyncTargetInvoker() {
-        EasyComponent pc = new EasyComponent(null,null,new ArrayList(), null, scopeContainer,
null,null);
+        EasyComponent pc = new EasyComponent(null,null,new ArrayList<Class<?>>(),
null, scopeContainer, null,null);
         assertNotNull(pc.createAsyncTargetInvoker(null, new Operation("foo", null,null,null)));
     }
     

Modified: incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy/EasyComponentTypeLoaderTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy/EasyComponentTypeLoaderTestCase.java?view=diff&rev=450836&r1=450835&r2=450836
==============================================================================
--- incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy/EasyComponentTypeLoaderTestCase.java
(original)
+++ incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy/EasyComponentTypeLoaderTestCase.java
Thu Sep 28 05:27:29 2006
@@ -22,8 +22,6 @@
 import static org.easymock.EasyMock.expect;
 import static org.easymock.EasyMock.replay;
 
-import java.io.IOException;
-import java.io.InputStream;
 import java.net.MalformedURLException;
 import java.net.URL;
 
@@ -48,26 +46,13 @@
  */
 public class EasyComponentTypeLoaderTestCase extends TestCase {
 
-    private String script;
-
     public void testGetSideFileName() {
-//        EasyInstanceFactory bsfEasy = new MockInstanceFactory("BSFEasyTestCase.mock", "hello",
script, null);
         EasyComponentTypeLoader loader = new EasyComponentTypeLoader();
-//        EasyImplementation implementation = new EasyImplementation();
-//        implementation.setScriptInstanceFactory(bsfEasy);
         assertEquals("BSFEasyTestCase.componentType", loader.getSideFileName("BSFEasyTestCase.mock"));
-
-////        bsfEasy = new MockInstanceFactory("BSFEasyTestCase", "hello", script, null);
-////        implementation.setScriptInstanceFactory(bsfEasy);
-//        assertEquals("BSFEasyTestCase.componentType", loader.getSideFileName("BSFEasyTestCase"));
-
     }
 
     public void testGetSideFileNameNoDot() {
-//        EasyInstanceFactory bsfEasy = new MockInstanceFactory("BSFEasyTestCase", "hello",
script, null);
         EasyComponentTypeLoader loader = new EasyComponentTypeLoader();
-        EasyImplementation implementation = new EasyImplementation();
-//        implementation.setScriptInstanceFactory(bsfEasy);
       assertEquals("BSFEasyTestCase.componentType", loader.getSideFileName("BSFEasyTestCase"));
     }
 
@@ -148,25 +133,8 @@
         assertEquals(EasyImplementation.class, loader.getImplementationClass());
     }
 
-//    public void testGetResourceName() {
-//        EasyComponentTypeLoader loader = new EasyComponentTypeLoader();
-//        EasyImplementation implementation = new EasyImplementation();
-//        implementation.setResourceName("PythonEasyTestCase.py");
-////        EasyInstanceFactory bsfEasy = new MockInstanceFactory("PythonEasyTestCase.py",
"hello", script, null);
-////        implementation.setScriptInstanceFactory(bsfEasy);
-//        assertEquals("PythonEasyTestCase.py", loader.getResourceName(implementation));
-//    }
-
     @Override
-    public void setUp() throws IOException {
-//        URL scriptURL = getClass().getResource("foo.mock");
-//        InputStream is = scriptURL.openStream();
-//        StringBuilder sb = new StringBuilder();
-//        int i = 0;
-//        while ((i = is.read()) != -1) {
-//            sb.append((char) i);
-//        }
-//        is.close();
-//        script = sb.toString();
+    public void setUp() throws Exception {
+        super.setUp();
     }
 }

Modified: incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy/EasyImplementationTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy/EasyImplementationTestCase.java?view=diff&rev=450836&r1=450835&r2=450836
==============================================================================
--- incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy/EasyImplementationTestCase.java
(original)
+++ incubator/tuscany/sandbox/ant/container.easy/src/test/java/org/apache/tuscany/container/easy/EasyImplementationTestCase.java
Thu Sep 28 05:27:29 2006
@@ -1,9 +1,5 @@
 package org.apache.tuscany.container.easy;
 
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.URL;
-
 import junit.framework.TestCase;
 
 import org.apache.tuscany.container.easy.mock.MockInstanceFactory;
@@ -24,17 +20,8 @@
         assertEquals("foo", impl.getResourceName());
     }
 
-    public void setUp() throws IOException {
-//        URL easyURL = getClass().getResource("foo.mock");
-//        assert easyURL != null;
-//        InputStream is = easyURL.openStream();
-//        StringBuilder sb = new StringBuilder();
-//        int i = 0;
-//        while ((i = is.read()) != -1) {
-//            sb.append((char) i);
-//        }
-//        is.close();
-//        String easy = sb.toString();
+    public void setUp() throws Exception {
+        super.setUp();
         bsfEasy = new MockInstanceFactory("BSFEasyTestCase", null);
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message