Examples of doNothing()


Examples of org.apache.geronimo.kernel.MockGBean.doNothing()

                msg= instance.echo(msg);
            }
        }
        long start = System.currentTimeMillis();
        for (int i = 0; i < iterations; i++) {
            instance.doNothing();
        }
        long end = System.currentTimeMillis();
        printResults("Normal", end, start, iterations);

        // reflection
View Full Code Here

Examples of org.apache.geronimo.kernel.MockGBean.doNothing()

                msg= instance.echo(msg);
            }
        }
        long start = System.currentTimeMillis();
        for (int i = 0; i < iterations; i++) {
            instance.doNothing();
        }
        long end = System.currentTimeMillis();
        printResults("Normal", end, start, iterations);

        // reflection
View Full Code Here

Examples of org.apache.tuscany.sca.test.corba.types.ScenarioFive.doNothing()

        try {
            // just make sure we can obtain and use the reference with success
            Node node = NodeFactory.getInstance().createNode("ScenarioFive.composite", getClass().getClassLoader()).start();
            ScenarioFive scenarioFive =
                node.getService(ScenarioFiveComponent.class, "ScenarioFive").getScenarioFive();
            scenarioFive.doNothing();
            node.stop();
        } catch (Exception e) {
            e.printStackTrace();
            fail();
        }
View Full Code Here

Examples of org.apache.tuscany.sca.test.corba.types.ScenarioFive.doNothing()

        try {
            // just make sure we can obtain and use the reference with success
            SCADomain domain = SCADomain.newInstance("ScenarioFive.composite");
            ScenarioFive scenarioFive =
                domain.getService(ScenarioFiveComponent.class, "ScenarioFive").getScenarioFive();
            scenarioFive.doNothing();
        } catch (Exception e) {
            e.printStackTrace();
            fail();
        }
    }
View Full Code Here

Examples of org.jboss.as.demos.ejb3.archive.SimpleSingletonLocal.doNothing()

            for (int i = 0; i < numTimes; i++) {
                Context ctx = new InitialContext();
                SimpleSingletonLocal bean = (SimpleSingletonLocal) ctx.lookup(jndiName);
                // invoke a no-op since the singleton bean instance gets created on invocation
                bean.doNothing();
            }
        } finally {
            latch.countDown();
        }
        return null;
View Full Code Here

Examples of org.jboss.as.test.integration.rar.ejb.NoOpEJB.doNothing()

     * @throws Exception
     */
    @Test
    public void testDeployment() throws Exception {
        final NoOpEJB noOpEJB = InitialContext.doLookup("java:app/ejb/" + NoOpEJB.class.getSimpleName());
        noOpEJB.doNothing();
    }
}
View Full Code Here

Examples of org.jboss.test.deployment.jbas7760.appone.AppOneEJB2xRemote.doNothing()

   {
      AppOneEJB2xHome appOneHome = (AppOneEJB2xHome) this.getInitialContext().lookup("jbas-7760-appone-ejb");
      AppOneEJB2xRemote appOneRemote = (AppOneEJB2xRemote) PortableRemoteObject.narrow(appOneHome.create(), AppOneEJB2xRemote.class);
     
      // just test a simple invocation
      appOneRemote.doNothing();
     
      // do the same with the other app
      AppTwoEJB2xHome appTwoHome = (AppTwoEJB2xHome) this.getInitialContext().lookup("jbas-7760-apptwo-ejb");
      AppTwoEJB2xRemote appTwoRemote = (AppTwoEJB2xRemote) PortableRemoteObject.narrow(appTwoHome.create(), AppTwoEJB2xRemote.class);
     
View Full Code Here

Examples of org.jboss.test.deployment.jbas7760.apptwo.AppTwoEJB2xRemote.doNothing()

      // do the same with the other app
      AppTwoEJB2xHome appTwoHome = (AppTwoEJB2xHome) this.getInitialContext().lookup("jbas-7760-apptwo-ejb");
      AppTwoEJB2xRemote appTwoRemote = (AppTwoEJB2xRemote) PortableRemoteObject.narrow(appTwoHome.create(), AppTwoEJB2xRemote.class);
     
      // just test a simple invocation
      appTwoRemote.doNothing();
     
     
     
   }
View Full Code Here

Examples of org.jboss.test.jmx.eardeployment.a.interfaces.SessionA.doNothing()

   {
      try
      {
         SessionAHome ahome = (SessionAHome)new InitialContext().lookup("eardeployment/SessionA");
         SessionA a = ahome.create();
         a.doNothing();
         return true;
      }
      catch (Exception e)
      {
         Logger.getLogger(getClass()).error("error in callA", e);
View Full Code Here

Examples of org.jboss.test.jmx.eardeployment.b.interfaces.SessionB.doNothing()

      try
      {
        
         SessionBHome bhome = (SessionBHome)new InitialContext().lookup("eardeployment/SessionB");
         SessionB b = bhome.create();
         b.doNothing();
         return true;
      }
      catch (Exception e)
      {
         Logger.getLogger(getClass()).error("error in callB", e);
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.