Examples of hello()


Examples of org.apache.webbeans.test.component.intercept.InterceptedComponent.hello()

        Object object = getManager().getInstance(comps.get(0));

        Assert.assertTrue(object instanceof InterceptedComponent);

        InterceptedComponent comp = (InterceptedComponent) object;
        Object s = comp.hello(null);

        Assert.assertEquals(new Integer(5), s);

        ContextFactory.destroyRequestContext(null);
    }
View Full Code Here

Examples of org.apache.webbeans.test.component.intercept.webbeans.WInterceptorComponent.hello()

        Object object = getManager().getInstance(comps.get(0));

        Assert.assertTrue(object instanceof WInterceptorComponent);

        WInterceptorComponent comp = (WInterceptorComponent) object;
        int s = comp.hello();

        Assert.assertEquals(5, s);

        ContextFactory.destroyRequestContext(null);
    }
View Full Code Here

Examples of org.apache.webbeans.test.component.intercept.webbeans.WInterceptorComponent.hello()

        Object object = getManager().getInstance(comps.get(0));

        Assert.assertTrue(object instanceof WInterceptorComponent);

        WInterceptorComponent comp = (WInterceptorComponent) object;
        int s = comp.hello();

        Assert.assertEquals(5, s);

        ContextFactory.destroyRequestContext(null);
    }
View Full Code Here

Examples of org.apache.webbeans.test.component.intercept.webbeans.WMetaInterceptorComponent.hello()

        Object object = getManager().getInstance(comps.get(0));

        Assert.assertTrue(object instanceof WMetaInterceptorComponent);

        WMetaInterceptorComponent comp = (WMetaInterceptorComponent) object;
        int s = comp.hello();

        Assert.assertEquals(5, s);

        s = comp.hello2();
View Full Code Here

Examples of org.apache.webbeans.test.component.intercept.webbeans.WMetaInterceptorComponent.hello()

        Object object = getManager().getInstance(comps.get(0));

        Assert.assertTrue(object instanceof WMetaInterceptorComponent);

        WMetaInterceptorComponent comp = (WMetaInterceptorComponent) object;
        int s = comp.hello();

        Assert.assertEquals(5, s);

        s = comp.hello2();
View Full Code Here

Examples of org.eclipse.ecf.examples.remoteservices.hello.IHello.hello()

    // IHello interface
    IHello proxy = (IHello) bundleContext.getService(reference);
    // Call proxy synchronously.  Note that this call may block or fail due to
    // synchronous communication with remote service
    System.out.println("STARTING remote call via proxy...");
    proxy.hello(CONSUMER_NAME+" via proxy");
    System.out.println("COMPLETED remote call via proxy");
    System.out.println();
    // Call other helloMessage method
    System.out.println("STARTING remote call via proxy...");
    proxy.helloMessage(new HelloMessage(CONSUMER_NAME+" via proxy","howdy"));
View Full Code Here

Examples of org.hotswap.agent.plugin.spring.testBeans.BeanPrototype.hello()

     * Plugin is currently unable to reload prototype bean instance.
     */
    @Test
    public void hotswapPrototypeTestFailWhenHoldingInstance() throws Exception {
        BeanPrototype beanPrototypeInstance = factory.getBean(BeanPrototype.class);
        assertEquals("Hello from Repository ServiceWithAspect Prototype", beanPrototypeInstance.hello());

        // swap service this prototype is dependent to
        try {
            swapClasses(BeanServiceImpl.class, BeanServiceImpl2.class.getName());
            assertEquals("Hello from ChangedRepository Service2WithAspect Prototype", beanPrototypeInstance.hello());
View Full Code Here

Examples of org.jboss.embedded.test.vfs.HelloWorld.hello()

      jar.addClass(HelloWorld.class);
      jar.addClass(HelloWorldBean.class);

      Bootstrap.getInstance().deploy(jar);
      HelloWorld hello = (HelloWorld)new InitialContext().lookup("HelloWorldBean/local");
      hello.hello();
      Bootstrap.getInstance().undeploy(jar);
   }

   public void testVfs() throws Exception
   {
View Full Code Here

Examples of org.jboss.test.cluster.invokerha.HAServiceRemote.hello()

      Context ctx = new InitialContext(env);
      getLog().debug("Got InitialContext with " + urls[0]);
     
      HAServiceRemote remote = (HAServiceRemote) ctx.lookup(jndiName);
      getLog().debug("Found " + jndiName);
      assertEquals("Hello", remote.hello());
      String nodeA = remote.getClusterNode();
      assertNotNull("Got clusterNode", nodeA);
      getLog().debug("nodeA OK");
      // Invoke again to check it works with load balancing
      assertFalse("Requests load balanced", nodeA.equals(remote.getClusterNode()));
View Full Code Here

Examples of org.jboss.test.cluster.invokerha.HAServiceRemote.hello()

      catch (NamingException good) {}
     
      // Check it still works
      try
      {
         assertEquals("Hello", remote.hello());
         getLog().debug("OK after reconfigure");
      }
      catch (ServiceUnavailableException sue)
      {
         fail("Known issue JBAS-3194: " + sue.getMessage());
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.