Package org.auraframework.util.sampleServices

Examples of org.auraframework.util.sampleServices.NamedService


     */
    public void testGetWithName() {
        // 1. A service interface having 2 implementation and one of them
        // registered with a name, while the other has no name but marked as
        // Primary
        NamedService ns = s.get(NamedService.class, "IGOTTANAME");
        assertNotNull(ns);
        assertTrue("Expected: NamedServiceImpl2 for service interface: NamedService but got: "
                + ns.getClass().getSimpleName() + ".", ns instanceof NamedServiceImpl2);

        // 2. Negative case:Make sure names are case sensitive
        assertNull(s.get(NamedService.class, "igoTTaName"));

        // 3. Asking for a service interface which has not been registered with
View Full Code Here

TOP

Related Classes of org.auraframework.util.sampleServices.NamedService

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.