Examples of triggerTimer()


Examples of org.jboss.as.test.integration.management.deploy.runtime.ejb.singleton.timer.PointlessInterface.triggerTimer()

    @Test
    public void testTimer() throws Exception{
        final InitialContext context = getInitialContext();
        try{
            PointlessInterface pointlessInterface = (PointlessInterface) context.lookup(getEJBJNDIBinding());
            pointlessInterface.triggerTimer();
            Thread.currentThread().sleep(1000);
            Assert.assertTrue("Did not receive timer invocation!",pointlessInterface.getTimerCount()>0);
        } finally{
            safeClose(context);
        }
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.