Author: jmarino
Date: Mon Apr 24 08:54:19 2006
New Revision: 396589

URL: http://svn.apache.org/viewcvs?rev=396589&view=rev
Log:
testcase cleanup and additional assertion test

Modified:
    
incubator/tuscany/java/sca/containers/container.java/src/test/java/org/apache/tuscany/container/java/integration/binding/EPtoExternalServiceTestCase.java

Modified: 
incubator/tuscany/java/sca/containers/container.java/src/test/java/org/apache/tuscany/container/java/integration/binding/EPtoExternalServiceTestCase.java
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.java/src/test/java/org/apache/tuscany/container/java/integration/binding/EPtoExternalServiceTestCase.java?rev=396589&r1=396588&r2=396589&view=diff
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.java/src/test/java/org/apache/tuscany/container/java/integration/binding/EPtoExternalServiceTestCase.java
 (original)
+++ 
incubator/tuscany/java/sca/containers/container.java/src/test/java/org/apache/tuscany/container/java/integration/binding/EPtoExternalServiceTestCase.java
 Mon Apr 24 08:54:19 2006
@@ -25,8 +25,6 @@
     private Method hello;
 
     public void testEPtoESInvocation() throws Throwable {
-
-
         RuntimeContext runtime = 
MockFactory.registerFooBinding(MockFactory.createJavaRuntime());
         PolicyBuilderRegistry registry = (PolicyBuilderRegistry) 
((CompositeContext) 
runtime.getSystemContext().getContext(MockFactory.SYSTEM_CHILD))
                 
.getContext(MockFactory.POLICY_BUILDER_REGISTRY).getInstance(null);
@@ -51,9 +49,7 @@
         Assert.assertNotNull(ctx);
         handler = (InvocationHandler) ctx.getHandler();
         response = handler.invoke(null, hello, new Object[]{"foo"});
-//        HelloWorldService service1 = (HelloWorldService) 
child.getContext("target").getInstance(null);
-//        Assert.assertEquals(2, service1.count());
-//
+        Assert.assertEquals("foo", response);
         child.publish(new RequestEnd(this, id));
 
         // second request
@@ -66,8 +62,6 @@
         response = handler.invoke(null, hello, new Object[]{"foo"});
         Assert.assertEquals("foo", response);
         Assert.assertEquals(3, mockInterceptor.getCount());
-//        HelloWorldService service2 = (HelloWorldService) 
child.getContext("target").getInstance(null);
-//        Assert.assertEquals(1, service2.count());
         child.publish(new RequestEnd(this, id2));
 
         child.publish(new ModuleStop(this));


Reply via email to