Package org.apache.tapestry.runtime

Examples of org.apache.tapestry.runtime.Component


    @Test
    public void uncached_object_read() throws Exception
    {
        InternalComponentResources resources = mockInternalComponentResources();

        Component component = setupForIntegrationTest(resources);

        // Notice no check for isRendering() since that is irrelevant to uncached parameters.
        // Also note difference between field name and parameter name, due to Parameter.name() being
        // specified.
View Full Code Here


    @Test
    public void uncached_object_write() throws Exception
    {
        InternalComponentResources resources = mockInternalComponentResources();

        Component component = setupForIntegrationTest(resources);

        // Notice no check for isRendering() since that is irrelevant to uncached parameters.
        // Also note difference between field name and parameter name, due to Parameter.name() being
        // specified.
View Full Code Here

                train_isInvariant(resources, "value", true);

            };
        };

        Component component = setupForIntegrationTest(
                resources,
                mockLogger(),
                DefaultParameterComponent.class.getName(),
                model,
                source,
View Full Code Here

                train_isInvariant(resources, "value", true);
            };
        };

        Component component = setupForIntegrationTest(
                resources,
                mockLogger(),
                DefaultParameterBindingMethodComponent.class.getName(),
                model,
                source,
View Full Code Here

        phaseTwoTraining.run();

        replay();

        Component component = instantiator.newInstance(resources);

        component.containingPageDidLoad();

        verify();

        return component;
    }
View Full Code Here

    @Test
    public void coerce_when_not_enough_context()
    {
        ComponentEventHandler handler = mockComponentEventHandler();
        Component component = mockComponent();

        replay();

        ComponentEvent event = new ComponentEventImpl("eventType", "someId", new String[]
        { "27" }, handler, _coercer);
View Full Code Here

    @Test
    public void unable_to_coerce()
    {
        ComponentEventHandler handler = mockComponentEventHandler();
        Component component = mockComponent();

        replay();

        ComponentEvent event = new ComponentEventImpl("eventType", "someId", new String[]
        { "abc" }, handler, _coercer);
View Full Code Here

    @Test
    public void store_result_and_abort()
    {
        Object result = new Object();
        String methodDescription = "foo.Bar.baz()";
        Component component = mockComponent();

        ComponentEventHandler handler = mockComponentEventHandler();

        train_handleResult(handler, result, component, methodDescription, true);
View Full Code Here

    @Test
    public void store_result_and_continue()
    {
        Object result = new Object();
        String methodDescription = "foo.Bar.baz()";
        Component component = mockComponent();
        ComponentEventHandler handler = mockComponentEventHandler();

        train_handleResult(handler, result, component, methodDescription, false);

        replay();
View Full Code Here

    }

    @Test
    public void store_null_result_does_not_abort_or_invoke_handler()
    {
        Component component = mockComponent();
        ComponentEventHandler handler = mockComponentEventHandler();

        replay();

        ComponentEvent event = new ComponentEventImpl("eventType", "someId", null, handler,
View Full Code Here

TOP

Related Classes of org.apache.tapestry.runtime.Component

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.