Package org.rioproject.impl.event

Examples of org.rioproject.impl.event.BasicEventConsumer.terminate()


            Thread.sleep(500);
        }
        Assert.assertNotNull(listener.failed);
        ServiceBeanInstance[] instances = cybernode.getServiceBeanInstances(element);
        Assert.assertEquals(0, instances.length);
        eventConsumer.terminate();
    }

    @Test
    public void testThatServiceThatThrowsDuringPostAdvertiseWithRequiresAssociation() throws Exception {
        String opStringName = "Bar";
View Full Code Here


               listener.event.getAction().equals(ProvisionMonitorEvent.Action.SERVICE_BEAN_DECREMENTED)) {
                break;
            }
            Thread.sleep(500);
        }
        eventConsumer.terminate();
        Assert.assertNotNull(listener.event);
        Assert.assertEquals(ProvisionMonitorEvent.Action.SERVICE_BEAN_DECREMENTED, listener.event.getAction());
        Assert.assertEquals(element1, listener.event.getServiceElement());

        OperationalString operationalString = manager.getOperationalString();
View Full Code Here

               listener.event.getAction().equals(ProvisionMonitorEvent.Action.SERVICE_BEAN_DECREMENTED)) {
                break;
            }
            Thread.sleep(500);
        }
        eventConsumer.terminate();
        Assert.assertNotNull(listener.event);
        Assert.assertEquals(ProvisionMonitorEvent.Action.SERVICE_BEAN_DECREMENTED, listener.event.getAction());
        instances = cybernode.getServiceBeanInstances(element1);
        Assert.assertEquals(0, instances.length);
        instances = manager.getServiceBeanInstances(element1);
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.