Examples of changePid()


Examples of org.apache.felix.cm.integration.helper.ManagedServiceFactoryTestActivator.changePid()

        TestCase.assertEquals( 0, tester.numManagedServiceUpdatedCalls );
        TestCase.assertEquals( 1, tester.numManagedServiceFactoryUpdatedCalls );
        TestCase.assertEquals( 0, tester.numManagedServiceFactoryDeleteCalls );

        // change ManagedService PID
        tester.changePid( factoryPid1 );
        delay();

        // pid1 properties must have been added
        Dictionary<?, ?> props1 = tester.configs.get( pid1 );
        TestCase.assertNotNull( props1 );
View Full Code Here

Examples of org.apache.felix.cm.integration.helper.ManagedServiceFactoryTestActivator.changePid()

        TestCase.assertEquals( 0, tester.numManagedServiceUpdatedCalls );
        TestCase.assertEquals( 2, tester.numManagedServiceFactoryUpdatedCalls );
        TestCase.assertEquals( 0, tester.numManagedServiceFactoryDeleteCalls );

        // change ManagedService PID
        tester.changePid( factoryPid1 + "," + factoryPid2 );
        delay();

        // pid2 properties must have been added
        Dictionary<?, ?> props2 = tester.configs.get( pid2 );
        TestCase.assertNotNull( props2 );
View Full Code Here

Examples of org.apache.felix.cm.integration.helper.ManagedServiceFactoryTestActivator.changePid()

        TestCase.assertEquals( 0, tester.numManagedServiceUpdatedCalls );
        TestCase.assertEquals( 1, tester.numManagedServiceFactoryUpdatedCalls );
        TestCase.assertEquals( 0, tester.numManagedServiceFactoryDeleteCalls );

        // change ManagedService PID
        tester.changePid( factoryPid1 );
        delay();

        // pid1 properties must have been added
        Dictionary<?, ?> props1 = tester.configs.get( pid1 );
        TestCase.assertNotNull( props1 );
View Full Code Here

Examples of org.apache.felix.cm.integration.helper.ManagedServiceFactoryTestActivator.changePid()

        TestCase.assertEquals( 0, tester.numManagedServiceUpdatedCalls );
        TestCase.assertEquals( 2, tester.numManagedServiceFactoryUpdatedCalls );
        TestCase.assertEquals( 0, tester.numManagedServiceFactoryDeleteCalls );

        // change ManagedService PID
        tester.changePid( factoryPid1 + "," + factoryPid2 );
        delay();

        // pid2 properties must have been added
        Dictionary<?, ?> props2 = tester.configs.get( pid2 );
        TestCase.assertNotNull( props2 );
View Full Code Here

Examples of org.apache.felix.cm.integration.helper.ManagedServiceTestActivator.changePid()

        TestCase.assertNull( tester.props.get( ConfigurationAdmin.SERVICE_BUNDLELOCATION ) );
        TestCase.assertEquals( PROP_NAME, tester.props.get( PROP_NAME ) );
        TestCase.assertEquals( 1, tester.numManagedServiceUpdatedCalls );

        // change ManagedService PID
        tester.changePid( pid1 );
        delay();

        TestCase.assertNotNull( tester.props );
        TestCase.assertEquals( pid1, tester.props.get( Constants.SERVICE_PID ) );
        TestCase.assertNull( tester.props.get( ConfigurationAdmin.SERVICE_FACTORYPID ) );
View Full Code Here

Examples of org.apache.felix.cm.integration.helper.ManagedServiceTestActivator.changePid()

        // two pids, two calls
        TestCase.assertEquals( 2, tester.numManagedServiceUpdatedCalls );

        // change ManagedService PID
        tester.changePid( pid1 + "," + pid2 );
        delay();

        TestCase.assertNotNull( tester.props );

        // config pid0 is not "removed"
View Full Code Here

Examples of org.apache.felix.cm.integration.helper.ManagedServiceTestActivator.changePid()

        TestCase.assertNull( tester.props.get( ConfigurationAdmin.SERVICE_BUNDLELOCATION ) );
        TestCase.assertEquals( PROP_NAME, tester.props.get( PROP_NAME ) );
        TestCase.assertEquals( 1, tester.numManagedServiceUpdatedCalls );

        // change ManagedService PID
        tester.changePid( pid1 );
        delay();

        TestCase.assertNotNull( tester.props );
        TestCase.assertEquals( pid1, tester.props.get( Constants.SERVICE_PID ) );
        TestCase.assertNull( tester.props.get( ConfigurationAdmin.SERVICE_FACTORYPID ) );
View Full Code Here

Examples of org.apache.felix.cm.integration.helper.ManagedServiceTestActivator.changePid()

        // two pids, two calls
        TestCase.assertEquals( 2, tester.numManagedServiceUpdatedCalls );

        // change ManagedService PID
        tester.changePid( pid1 + "," + pid2 );
        delay();

        TestCase.assertNotNull( tester.props );

        // config pid0 is not "removed"
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.