Package org.apache.tapestry.spec

Examples of org.apache.tapestry.spec.ComponentSpecification.addParameter()


        IParameterSpecification ps = new ParameterSpecification();

        ps.setAliases("wilma,barney");
        ps.setParameterName("bambam");

        s.addParameter(ps);

        expected.add("wilma");
        expected.add("barney");
        expected.add("bambam");
View Full Code Here


        ContainedComponent contained = new ContainedComponent();
        contained.setBinding("barney", bspec);
        contained.setType("FredComponent");

        IComponentSpecification spec = new ComponentSpecification();
        spec.addParameter(pspec);

        component.getSpecification();
        componentc.setReturnValue(spec);

        Log log = (Log) newMock(Log.class);
View Full Code Here

        ContainedComponent contained = new ContainedComponent();
        contained.setBinding("fred", bspec);
        contained.setType("FredComponent");

        IComponentSpecification spec = new ComponentSpecification();
        spec.addParameter(pspec);

        component.getSpecification();
        componentc.setReturnValue(spec);

        Log log = (Log) newMock(Log.class);
View Full Code Here

        ContainedComponent contained = new ContainedComponent();
        contained.setBinding("barney", bspec);
        contained.setType("FredComponent");

        IComponentSpecification spec = new ComponentSpecification();
        spec.addParameter(pspec);

        trainGetSpecification(component, spec);

        log.warn(startsWith("Parameter barney (for component FredComponent, at "));
View Full Code Here

        ContainedComponent contained = new ContainedComponent();
        contained.setBinding("fred", bspec);
        contained.setType("FredComponent");

        IComponentSpecification spec = new ComponentSpecification();
        spec.addParameter(pspec);

        trainGetSpecification(component, spec);

        log.warn(endsWith("has been deprecated, "
                        + "and may be removed in a future release. Consult the documentation for component FredComponent to "
View Full Code Here

        ContainedComponent contained = new ContainedComponent();
        contained.setBinding("barney", bspec);
        contained.setType("FredComponent");

        IComponentSpecification spec = new ComponentSpecification();
        spec.addParameter(pspec);

        trainGetSpecification(component, spec);

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

        ContainedComponent contained = new ContainedComponent();
        contained.setBinding("fred", bspec);
        contained.setType("FredComponent");

        IComponentSpecification spec = new ComponentSpecification();
        spec.addParameter(pspec);

        trainGetSpecification(component, spec);

        log
                .warn("Parameter fred (at classpath:/org/apache/tapestry/pageload/PageLoaderTest, line 1) has been deprecated, "
View Full Code Here

    {
        ParameterSpecification pspec = new ParameterSpecification();
        pspec.setParameterName("fred");

        ComponentSpecification cspec = new ComponentSpecification();
        cspec.addParameter(pspec);

        IComponent component = newComponent(cspec);

        replay();
View Full Code Here

        pspec.setParameterName("fred");
        pspec.setAliases("barney");
        pspec.setRequired(true);

        ComponentSpecification cspec = new ComponentSpecification();
        cspec.addParameter(pspec);

        IBinding fredBinding = newBinding();
        IComponent component = newComponent(cspec);

        // Notice that we don't ever check for "barney", just
View Full Code Here

        ParameterSpecification pspec = new ParameterSpecification();
        pspec.setParameterName("fred");
        pspec.setRequired(true);

        ComponentSpecification cspec = new ComponentSpecification();
        cspec.addParameter(pspec);

        Location l = newLocation();
       
        IComponent component = newComponent(cspec);
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.