Examples of waitForStep()


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

       
        // now change a resource and see if it gets propagated to the consumer
        provider.changeResource();
       
        // wait for change callback
        e.waitForStep(5, 5000);
        e.step(6);
       
        // cleanup
        m.remove(dynamicProxyConsumer);
        m.remove(resourceProvider);
View Full Code Here

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

                .setRequired(true)
                );
       
        m.add(p);
        m.add(c);
        e.waitForStep(1, 5000);
        m.remove(p);
        e.waitForStep(2, 5000);
        m.remove(c);
       
        Assert.assertEquals("Dependency manager bundle should be active.", Bundle.ACTIVE, context.getBundle().getState());
View Full Code Here

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

       
        m.add(p);
        m.add(c);
        e.waitForStep(1, 5000);
        m.remove(p);
        e.waitForStep(2, 5000);
        m.remove(c);
       
        Assert.assertEquals("Dependency manager bundle should be active.", Bundle.ACTIVE, context.getBundle().getState());
    }
View Full Code Here

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

           
            System.out.println("add adapter");
            m.add(adapter);
            System.out.println("add consumer");
            m.add(consumer);
            e.waitForStep(1 + offset, 5000);
            System.out.println("add aspect");
            m.add(aspect);
            // a swap is expected on the adapter
            e.waitForStep(2 + offset, 5000);
            System.out.println("add adapter2");
View Full Code Here

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

            m.add(consumer);
            e.waitForStep(1 + offset, 5000);
            System.out.println("add aspect");
            m.add(aspect);
            // a swap is expected on the adapter
            e.waitForStep(2 + offset, 5000);
            System.out.println("add adapter2");
            m.add(adapter2);
            // another aspect adapter will appear
            e.waitForStep(4 + offset, 5000);
            System.out.println("remove provider");
View Full Code Here

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

            // a swap is expected on the adapter
            e.waitForStep(2 + offset, 5000);
            System.out.println("add adapter2");
            m.add(adapter2);
            // another aspect adapter will appear
            e.waitForStep(4 + offset, 5000);
            System.out.println("remove provider");
            m.remove(provider);
            // two times:
            // the aspect adapter will disappear
            // the original adapter will (briefly) appear
View Full Code Here

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

            // the original adapter will (briefly) appear
            // the original adapter will disappear
           
            // TODO the test will fail somewhere here most of the time
           
            e.waitForStep(8 + offset, 5000);
            System.out.println("remove consumer");
            m.remove(consumer);
           
            // nothing should happen, all consumed services were already gone
            System.out.println("add provider");
View Full Code Here

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

            m.remove(adapter2);
            System.out.println("remove aspect");
            m.remove(aspect);
        }
        m.remove(provider);
        e.waitForStep(stepsInLoop * loops, 5000);
    }
   
    static interface OriginalService {
        public void invoke();
    }
View Full Code Here

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

        m.add(adapter);
        // add a consumer that will invoke the adapter
        // which will in turn invoke the original provider
        m.add(consumer);
        // now validate that both have been invoked in the right order
        e.waitForStep(2, 5000);
        // remove the provider again
        m.remove(provider);
        // ensure that the consumer is stopped
        e.waitForStep(3, 5000);
        // remove adapter and consumer
View Full Code Here

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

        // now validate that both have been invoked in the right order
        e.waitForStep(2, 5000);
        // remove the provider again
        m.remove(provider);
        // ensure that the consumer is stopped
        e.waitForStep(3, 5000);
        // remove adapter and consumer
        m.remove(adapter);
        m.remove(consumer);
    }
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.