Package com.qspin.qtaste.kernel.testapi

Examples of com.qspin.qtaste.kernel.testapi.ComponentsLoader


    /**
     * Test of getInstance method, of class ComponentsLoader.
     */
    public void testGetInstance() {
        System.out.println("getInstance");       
        ComponentsLoader result = ComponentsLoader.getInstance();               
        assertNotNull("instance cannot be null", result);       
       
        ComponentsLoader result2 = ComponentsLoader.getInstance();
       
        assertNotNull(result2);
       
        assertEquals("should get the same instance", result, result2);
    }
View Full Code Here


     * Test of getComponentImplementationClass method, of class ComponentsLoader.
     */
    public void testGetComponentImplementationClass() {
        System.out.println("getComponentImplementationClass");
        String component = "";
        ComponentsLoader instance = ComponentsLoader.getInstance();
       
        // Get a non-existing component
        Class<?> result = instance.getComponentImplementationClass(component);
        assertNull(result);
       
        // Get an instance of the EngineTest component
        Class<?> result2 = instance.getComponentImplementationClass("EngineTest");
        assertNotNull(result2);
    }
View Full Code Here

TOP

Related Classes of com.qspin.qtaste.kernel.testapi.ComponentsLoader

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.