Examples of TestComponent


Examples of com.sun.faces.TestComponent

    //
    // Test Config related methods
    //

    public void testAddComponentPositive() {
        TestComponent
            newTestComponent = null,
            testComponent = new TestComponent();


        application.addComponent(testComponent.getComponentType(),
                                 "com.sun.faces.TestComponent");
        assertTrue(
            null !=
            (newTestComponent =
             (TestComponent)
            application.createComponent(testComponent.getComponentType())));
        assertTrue(newTestComponent != testComponent);

    }
View Full Code Here

Examples of com.sun.faces.TestComponent

    //
    // Test Config related methods
    //

    public void testComponentPositive() {
        TestComponent
            newTestComponent = null,
            testComponent = new TestComponent();
        UIComponent uic = null;

        // runtime addition

        application.addComponent(testComponent.getComponentType(),
                                 "com.sun.faces.TestComponent");
        assertTrue(
            null !=
            (newTestComponent =
             (TestComponent)
            application.createComponent(testComponent.getComponentType())));
        assertTrue(newTestComponent != testComponent);

        // built-in components
        for (int i = 0, len = standardComponentTypes.length; i < len; i++) {
            assertTrue(null != (uic =
View Full Code Here

Examples of com.sun.jini.test.spec.config.util.TestComponent

            returnValue = null;
            return lastReturn;
        }
        if (component.equals(validComponentName)
                && name.equals(validEntryName)) {
            lastReturn = new TestComponent();
            return lastReturn;
        } else {
            for (int j = 0; j < primitiveCases.length; ++j) {
                Object[] subCase = primitiveCases[j];
                if (component.equals(validComponentName)
View Full Code Here

Examples of com.sun.jini.test.spec.config.util.TestComponent

                data);
        if (!(result instanceof TestComponent)) {
            throw new TestException(
                    "Result is not the TestComponent class as was expected");
        }
        TestComponent dtc = (TestComponent) result;
        if (dtc.data != data) {
            throw new TestException(
                    "Data was not delivered properly");
        }
View Full Code Here

Examples of com.sun.jini.test.spec.config.util.TestComponent

            returnValue = null;
            return lastReturn;
        }
        if (component.equals(validComponentName)
                && name.equals(validEntryName)) {
            lastReturn = new TestComponent();
            return lastReturn;
        } else {
            for (int j = 0; j < primitiveCases.length; ++j) {
                Object[] subCase = primitiveCases[j];
                if (component.equals(validComponentName)
View Full Code Here

Examples of com.sun.jini.test.spec.config.util.TestComponent

                data);
        if (!(result instanceof TestComponent)) {
            throw new TestException(
                    "Result is not the TestComponent class as was expected");
        }
        TestComponent dtc = (TestComponent) result;
        if (dtc.data != data) {
            throw new TestException(
                    "Data was not delivered properly");
        }
View Full Code Here

Examples of name.pehl.taoki.TestComponent


    @Before
    public void setUp() throws Exception
    {
        component = new TestComponent();
        component.startWith("/numbers", getResourceClass());
    }
View Full Code Here

Examples of org.apache.felix.scr.integration.components.deadlock.TestComponent

        delay();
        props.put( "target", "foo" );
        config.update(props);
        delay();
      
        TestComponent tc = getServiceFromConfiguration(cc, TestComponent.class);
        assertTrue(tc.isSuccess1());
        assertTrue(tc.isSuccess2());
    }
View Full Code Here

Examples of org.apache.felix.scr.integration.components.deadlock.TestComponent

        delay();
        props.put( "target", "foo" );
        config.update(props);
        delay();
      
        TestComponent tc = (TestComponent) component.getComponentInstance().getInstance();
        assertTrue(tc.isSuccess1());
        assertTrue(tc.isSuccess2());
    }
View Full Code Here

Examples of org.apache.fulcrum.yaafi.TestComponent

     * @throws Exception
     */
    private void checkTestComponent()
        throws Exception
    {
        TestComponent testComponent = (TestComponent) container.lookup(
            TestComponent.ROLE
            );

        testComponent.test();

        assertEquals( testComponent.getBar(), "BAR" );
        assertEquals( testComponent.getFoo(), "FOO" );

        assertNotNull( testComponent.getUrnAvalonClassLoader() );
        assertNotNull( testComponent.getUrnAvaloneHome() );
        assertNotNull( testComponent.getUrnAvaloneTemp() );
        assertNotNull( testComponent.getUrnAvalonName() );
        assertNotNull( testComponent.getUrnAvalonPartition() );
    }
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.