Package org.apache.felix.ipojo.handlers.dependency

Examples of org.apache.felix.ipojo.handlers.dependency.DependencyCallback


        assertThat(dd).isNotNull();

        DependencyCallback[] callbacks = dd.getDependency().getDependencyCallbacks();
        assertThat(callbacks).isNotNull();

        DependencyCallback bind = getBindCallback(callbacks);
        DependencyCallback unbind = getUnbindCallback(callbacks);

        assertThat(bind).isNotNull();
        assertThat(unbind).isNotNull();

        assertThat(bind.getMethodName()).isEqualTo("setMyOtherService");
        assertThat(unbind.getMethodName()).isEqualTo("unsetMyOtherService");
    }
View Full Code Here


        assertThat(dd).isNotNull();

        DependencyCallback[] callbacks = dd.getDependency().getDependencyCallbacks();
        assertThat(callbacks).isNotNull();

        DependencyCallback bind = getBindCallback(callbacks);
        DependencyCallback unbind = getUnbindCallback(callbacks);

        assertThat(bind).isNotNull();
        assertThat(unbind).isNotNull();

        assertThat(bind.getMethodName()).isEqualTo("addMyService");
        assertThat(unbind.getMethodName()).isEqualTo("removeMyService");
    }
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.handlers.dependency.DependencyCallback

Copyright © 2018 www.massapicom. 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.