Examples of waitForStep()


Examples of org.apache.felix.dm.test.components.Ensure.waitForStep()

       
        m.add(c1);
        m.add(c2);
        m.add(c3);

        e.waitForStep(3, 10000);
       
        m.remove(c3);
        m.remove(c2);
        m.remove(c1);
        m.clear();
View Full Code Here

Examples of org.apache.felix.dm.test.components.Ensure.waitForStep()

       
        m.add(c1);
        m.add(c2);
        m.add(c3);

        e.waitForStep(3, 10000);
        m.clear();
    }
   
    public static class C1 {
        private Map m_props;
View Full Code Here

Examples of org.apache.felix.dm.test.components.Ensure.waitForStep()

        // add a component state listener
        component.addStateListener(new ComponentStateListenerImpl(e));
        // add the resource adapter
        m.add(component);
        // wait until the single resource is available (the adapter has been started)
        e.waitForStep(1, 5000);
        // trigger a 'change' in our resource
        provider.change();
        // wait until the changed callback is invoked
        e.waitForStep(2, 5000);
        // and has completed (ensuring no "extra" steps are invoked in the mean time)
View Full Code Here

Examples of org.apache.felix.dm.test.components.Ensure.waitForStep()

        // wait until the single resource is available (the adapter has been started)
        e.waitForStep(1, 5000);
        // trigger a 'change' in our resource
        provider.change();
        // wait until the changed callback is invoked
        e.waitForStep(2, 5000);
        // and has completed (ensuring no "extra" steps are invoked in the mean time)
        e.waitForStep(3, 5000);
       
        // remove the resource adapter again
        m.remove(component);
View Full Code Here

Examples of org.apache.felix.dm.test.components.Ensure.waitForStep()

        // trigger a 'change' in our resource
        provider.change();
        // wait until the changed callback is invoked
        e.waitForStep(2, 5000);
        // and has completed (ensuring no "extra" steps are invoked in the mean time)
        e.waitForStep(3, 5000);
       
        // remove the resource adapter again
        m.remove(component);
       
        // wait for the stopped callback in the state listener
View Full Code Here

Examples of org.apache.felix.dm.test.components.Ensure.waitForStep()

       
        // remove the resource adapter again
        m.remove(component);
       
        // wait for the stopped callback in the state listener
        e.waitForStep(4, 5000);
     }
   
    static class ResourceAdapter {
        protected URL m_resource; // injected by reflection.
        private Ensure m_ensure;
View Full Code Here

Examples of org.apache.felix.dm.test.components.Ensure.waitForStep()

        Component sa = m.createAspectService(ServiceInterface.class, null, 20, null)
            .setImplementation(ServiceAspect.class);
        m.add(sc);
        m.add(sp);
        // after the provider was added, the consumer's add should have been invoked once
        e.waitForStep(1, 2000);
        Assert.assertEquals("a", c.invoke());
        m.add(sa);
        // after the aspect was added, the consumer should get and add for the aspect and a remove
        // for the original service
        e.waitForStep(3, 2000);
View Full Code Here

Examples of org.apache.felix.dm.test.components.Ensure.waitForStep()

        e.waitForStep(1, 2000);
        Assert.assertEquals("a", c.invoke());
        m.add(sa);
        // after the aspect was added, the consumer should get and add for the aspect and a remove
        // for the original service
        e.waitForStep(3, 2000);
        Assert.assertEquals("aa", c.invoke());
        m.remove(sa);
        // removing the aspect again should give a remove and add
        e.waitForStep(5, 2000);
        Assert.assertEquals("a", c.invoke());
View Full Code Here

Examples of org.apache.felix.dm.test.components.Ensure.waitForStep()

        // for the original service
        e.waitForStep(3, 2000);
        Assert.assertEquals("aa", c.invoke());
        m.remove(sa);
        // removing the aspect again should give a remove and add
        e.waitForStep(5, 2000);
        Assert.assertEquals("a", c.invoke());
        m.remove(sp);
        // finally removing the original service should give a remove
        e.waitForStep(6, 2000);
        m.remove(sc);
View Full Code Here

Examples of org.apache.felix.dm.test.components.Ensure.waitForStep()

        // removing the aspect again should give a remove and add
        e.waitForStep(5, 2000);
        Assert.assertEquals("a", c.invoke());
        m.remove(sp);
        // finally removing the original service should give a remove
        e.waitForStep(6, 2000);
        m.remove(sc);
        e.step(7);
    }
   
    @Test
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.