Examples of BindingSource


Examples of org.apache.tapestry.binding.BindingSource

        verifyControls();
    }

    public void testAddWithInitialValue() throws Exception
    {
        BindingSource bs = (BindingSource) newMock(BindingSource.class);
        Location l = fabricateLocation(12);

        IComponentSpecification spec = buildComponentSpecification(buildPropertySpecs(
                "fred",
                "java.util.List",
View Full Code Here

Examples of org.apache.tapestry.binding.BindingSource

        verifyControls();
    }

    public void testAddWithInitialValue() throws Exception
    {
        BindingSource bs = (BindingSource) newMock(BindingSource.class);
        Location l = fabricateLocation(12);

        IComponentSpecification spec = buildComponentSpecification(buildPropertySpecs(
                "fred",
                "java.util.List",
View Full Code Here

Examples of org.apache.tapestry.binding.BindingSource

        verifyControls();
    }

    public void testAddWithInitialValue() throws Exception
    {
        BindingSource bs = (BindingSource) newMock(BindingSource.class);
        Location l = fabricateLocation(12);

        IComponentSpecification spec = buildComponentSpecification(buildPropertySpecs(
                "fred",
                "java.util.List",
View Full Code Here

Examples of org.apache.tapestry.binding.BindingSource

        log
                .error("Parameter barney (for component FredComponent, at classpath:/org/apache/tapestry/pageload/TestPageLoader, line 1) was bound; this parameter has been deprecated, bind parameter fred instead.");

        IBinding binding = newBinding();
        MockControl sourcec = newControl(BindingSource.class);
        BindingSource source = (BindingSource) sourcec.getMock();

        source.createBinding(container, "parameter barney", "an-expression", "ognl", l);
        sourcec.setReturnValue(binding);

        component.getBinding("fred");
        componentc.setReturnValue(null);
View Full Code Here

Examples of org.apache.tapestry.binding.BindingSource

                        + "and may be removed in a future release. Consult the documentation for component FredComponent to "
                        + "determine an appropriate replacement.");

        IBinding binding = newBinding();
        MockControl sourcec = newControl(BindingSource.class);
        BindingSource source = (BindingSource) sourcec.getMock();

        source.createBinding(container, "parameter fred", "an-expression", "ognl", l);
        sourcec.setReturnValue(binding);

        component.getBinding("fred");
        componentc.setReturnValue(null);
View Full Code Here

Examples of org.apache.tapestry.services.BindingSource

    @Test
    public void not_all_embedded_components_in_template()
    {
        ComponentTemplateSource templateSource = mockComponentTemplateSource();
        PageElementFactory elementFactory = mockPageElementFactory();
        BindingSource bindingSource = mockBindingSource();
        ComponentPageElement rootElement = mockComponentPageElement();
        InternalComponentResources resources = mockInternalComponentResources();
        ComponentModel model = mockComponentModel();
        ComponentTemplate template = mockComponentTemplate();
        Log log = mockLog();
View Full Code Here

Examples of org.apache.tapestry.services.BindingSource

    @Test
    public void type_conflict_between_template_and_class()
    {
        ComponentTemplateSource templateSource = mockComponentTemplateSource();
        PageElementFactory elementFactory = mockPageElementFactory();
        BindingSource bindingSource = mockBindingSource();
        ComponentPageElement rootElement = mockComponentPageElement();
        InternalComponentResources resources = mockInternalComponentResources();
        ComponentModel model = mockComponentModel();
        ComponentModel childModel = mockComponentModel();
        ComponentTemplate template = mockComponentTemplate();
View Full Code Here

Examples of org.apache.tapestry.services.BindingSource

    }

    @Test
    public void parameter_with_default() throws Exception
    {
        final BindingSource source = mockBindingSource();
        final InternalComponentResources resources = mockInternalComponentResources();
        final Binding binding = mockBinding();
        String boundValue = "howdy!";

        MutableComponentModel model = mockMutableComponentModel();

        model.addParameter("value", false, TapestryConstants.PROP_BINDING_PREFIX);

        Runnable phaseTwoTraining = new Runnable()
        {
            public void run()
            {
                train_isBound(resources, "value", false);

                expect(
                        source.newBinding(
                                "default value",
                                resources,
                                TapestryConstants.PROP_BINDING_PREFIX,
                                "literal:greeting")).andReturn(binding);
View Full Code Here

Examples of org.apache.tapestry.services.BindingSource

    }

    @Test
    public void default_binding_method() throws Exception
    {
        BindingSource source = mockBindingSource();
        final InternalComponentResources resources = mockInternalComponentResources();
        _binding = mockBinding();
        String boundValue = "yowza!";

        MutableComponentModel model = mockMutableComponentModel();
View Full Code Here

Examples of org.apache.tapestry.services.BindingSource

        Map<String, BindingFactory> map = newMap();

        map.put(defaultPrefix, factory);

        BindingSource source = new BindingSourceImpl(map);

        Binding actual = source.newBinding(
                description,
                container,
                component,
                defaultPrefix,
                expression,
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.