Examples of TestService


Examples of org.apache.tuscany.sca.host.embedded.test.extension.TestService

        domain = new DefaultSCADomain(getClass().getClassLoader(), getClass().getClassLoader(),
                                      "http://localhost", ".", "test.composite");
    }

    public void testStart() throws Exception {
        TestService service = domain.getService(TestService.class, "TestServiceComponent");
        assertNotNull(service);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.test.extension.TestService

       
        // At this point the domain contains my contribution, my composite and
        // it's started, my application code can start using it
       
        // Get the TestServiceComponent service
        TestService service = domain.getService(TestService.class, "TestServiceComponent");
       
        // Invoke the service
        String result = service.ping("Bob");
        assertEquals("Hello Bob", result);
       
        // Stop my composite
        domain.getCompositeActivator().stop(myComposite);
        domain.getCompositeActivator().deactivate(myComposite);
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.test.extension.TestService

        domain = new DefaultSCADomain(getClass().getClassLoader(), getClass().getClassLoader(),
                                      "http://localhost", ".", "test.composite");
    }

    public void testStart() throws Exception {
        TestService service = domain.getService(TestService.class, "TestServiceComponent");
        assertNotNull(service);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.test.extension.TestService

    }

    public void testInvoke() throws Exception {
        ServiceReference<TestService> serviceReference = domain.getServiceReference(TestService.class, "TestServiceComponent");
        assertNotNull(serviceReference);
        TestService service = serviceReference.getService();
        String result = service.ping("Bob");
        assertEquals("Hello Bob", result);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.test.extension.TestService

    }

    public void testInvoke() throws Exception {
        ServiceReference<TestService> serviceReference = domain.getServiceReference(TestService.class, "TestServiceComponent");
        assertNotNull(serviceReference);
        TestService service = serviceReference.getService();
        String result = service.ping("Bob");
        assertEquals("Hello Bob", result);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.test.extension.TestService

        domain = new DefaultSCADomain(getClass().getClassLoader(), getClass().getClassLoader(),
                                      "http://localhost", "./target/test-classes", "test.composite");
    }

    public void testStart() throws Exception {
        TestService service = domain.getService(TestService.class, "TestServiceComponent");
        assertNotNull(service);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.test.extension.TestService

        domain = new DefaultSCADomain(getClass().getClassLoader(), getClass().getClassLoader(),
                                      "http://localhost", "./target/test-classes", "test.composite");
    }

    public void testStart() throws Exception {
        TestService service = domain.getService(TestService.class, "TestServiceComponent");
        assertNotNull(service);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.test.extension.TestService

       
        // At this point the domain contains my contribution, my composite and
        // it's started, my application code can start using it
       
        // Get the TestServiceComponent service
        TestService service = domain.getService(TestService.class, "TestServiceComponent");
       
        // Invoke the service
        String result = service.ping("Bob");
        assertEquals("Hello Bob", result);
       
        // Stop my composite
        domain.getCompositeActivator().stop(myComposite);
        domain.getCompositeActivator().deactivate(myComposite);
View Full Code Here

Examples of org.beangle.spring.testbean.TestService

    }
    System.out.println("no autowire using " + watch.getTime());
  }

  private void testFactoryBean(ApplicationContext factory) {
    TestService testService = factory.getBean("testService", TestService.class);
    assertNotNull(testService);
    assertNotNull(testService.getTestDao());
  }
View Full Code Here

Examples of org.jboss.test.hotdeploy.service.TestService

      PrintWriter out = response.getWriter();
      System.out.println("Before my method execution");
      response.setContentType("text/plain");
      out.println("Before my method execution");
      TestService testService = new TestService();
      testService.saveOrganization();
      System.out.println("After my method execution");
      out.println("After my method execution");
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.