Examples of AService


Examples of org.anotheria.moskitoexamples.spring2.a.AService

public class UnmonitoredTest {
  @Test
  public void testUnmonitoredCall(){
    ApplicationContext context = new ClassPathXmlApplicationContext(
        new String[] {"services.xml"});
    AService service = (AService)context.getBean("AService");
    assertEquals(2*100, service.echoMethodA(100));
  }
View Full Code Here

Examples of org.anotheria.moskitoexamples.spring2.a.AService

  public void testMonitoredCall(){
    BasicConfigurator.configure();
    System.setProperty("JUNITTEST", "" + Boolean.TRUE);
    ApplicationContext context = new ClassPathXmlApplicationContext(
        new String[] {"services-aop.xml"});
    AService service = (AService)context.getBean("AService");
    assertEquals(2*100, service.echoMethodA(100));

    //check that the call is traced
    IProducerRegistryAPI registryAPI = new ProducerRegistryAPIFactory().createProducerRegistryAPI();
    IStatsProducer<ServiceStats> producerB = registryAPI.getProducer("BServiceImpl");
    assertEquals(1, producerB.getStats().get(0).getTotalRequests());
View Full Code Here

Examples of org.apache.tuscany.sca.vtest.wsbinding.nowsdl.promoted.AService

     */
    @Test
    public void testSoapVersion1() throws Exception {
     
      for (int i = 0; i < 8; i++) {
        AService a = ServiceFinder.getService(AService.class, "AComponent" + (i+1));
          String aName = a.getName();
          String b1Str1 = a.getB1String("string1");
          String b1Str2 = a.getB1String2("string2", "string3");
          int b1Int = a.getB1Int(i * 1000 + 1000);
            System.out.println(i + " - " + aName + ": " + b1Str1 + ", " + b1Str2 + ", " + b1Int);
            Assert.assertEquals("AService", aName);
            Assert.assertEquals("string1", b1Str1);
            Assert.assertEquals("string2string3", b1Str2);
            Assert.assertEquals(i * 1000 + 1000, b1Int);
View Full Code Here

Examples of org.apache.tuscany.sca.vtest.wsbinding.nowsdl.promoted.AService

     */
    @Test
    public void testSoapVersion2() throws Exception {
     
      for (int i = 8; i < 16; i++) {
        AService a = ServiceFinder.getService(AService.class, "AComponent" + (i+1));
          String aName = a.getName();
          String b1Str1 = a.getB1String("string1");
          String b1Str2 = a.getB1String2("string2", "string3");
          int b1Int = a.getB1Int(i * 1000 + 1000);
            System.out.println(i + " - " + aName + ": " + b1Str1 + ", " + b1Str2 + ", " + b1Int);
            Assert.assertEquals("AService", aName);
            Assert.assertEquals("string1", b1Str1);
            Assert.assertEquals("string2string3", b1Str2);
            Assert.assertEquals(i * 1000 + 1000, b1Int);
View Full Code Here

Examples of org.apache.tuscany.sca.vtest.wsbinding.nowsdl.soapversion.AService

     */
    @Test
    public void testSoapVersion2() throws Exception {
     
      for (int i = 8; i < 16; i++) {
        AService a = ServiceFinder.getService(AService.class, "AComponent" + (i+1));
          String aName = a.getName();
          String b1Str1 = a.getB1String("string1");
          String b1Str2 = a.getB1String2("string2", "string3");
          int b1Int = a.getB1Int(i * 1000 + 1000);
            System.out.println(i + " - " + aName + ": " + b1Str1 + ", " + b1Str2 + ", " + b1Int);
            Assert.assertEquals("AService", aName);
            Assert.assertEquals("string1", b1Str1);
            Assert.assertEquals("string2string3", b1Str2);
            Assert.assertEquals(i * 1000 + 1000, b1Int);
View Full Code Here

Examples of org.apache.tuscany.sca.vtest.wsbinding.nowsdl.soapversion.AService

     */
    @Test
    public void testSoapVersion1() throws Exception {
     
      for (int i = 0; i < 8; i++) {
        AService a = ServiceFinder.getService(AService.class, "AComponent" + (i+1));
          String aName = a.getName();
          String b1Str1 = a.getB1String("string1");
          String b1Str2 = a.getB1String2("string2", "string3");
          int b1Int = a.getB1Int(i * 1000 + 1000);
            System.out.println(i + " - " + aName + ": " + b1Str1 + ", " + b1Str2 + ", " + b1Int);
            Assert.assertEquals("AService", aName);
            Assert.assertEquals("string1", b1Str1);
            Assert.assertEquals("string2string3", b1Str2);
            Assert.assertEquals(i * 1000 + 1000, b1Int);
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.