Package org.apache.tapestry.ioc

Examples of org.apache.tapestry.ioc.Resource


    private static final String CLASS_NAME = "org.example.components.Foo";

    @Test
    public void root_class_vs_sub_class()
    {
        Resource r = mockResource();
        Log log = mockLog();

        replay();

        MutableComponentModel model = new MutableComponentModelImpl(CLASS_NAME, log, r, null);
View Full Code Here


    }

    @Test
    public void add_new_parameter()
    {
        Resource r = mockResource();
        Log log = mockLog();

        replay();

        MutableComponentModel model = new MutableComponentModelImpl(CLASS_NAME, log, r, null);
View Full Code Here

    }

    @Test
    public void parameter_names_are_sorted()
    {
        Resource r = mockResource();
        Log log = mockLog();

        replay();

        MutableComponentModel model = new MutableComponentModelImpl(CLASS_NAME, log, r, null);
View Full Code Here

    }

    @Test
    public void declared_parameter_names_does_not_include_superclass_parameters()
    {
        Resource r = mockResource();
        Log log = mockLog();
        ComponentModel parent = mockComponentModel();

        train_getPersistentFieldNames(parent);
        train_getParameterNames(parent, "betty");
View Full Code Here

    }

    @Test
    public void add_duplicate_parameter()
    {
        Resource r = mockResource();
        Log log = mockLog();

        replay();

        MutableComponentModel model = new MutableComponentModelImpl(CLASS_NAME, log, r, null);
View Full Code Here

    }

    @Test
    public void get_parameter_by_name_with_no_parameters_defined()
    {
        Resource r = mockResource();
        Log log = mockLog();

        replay();

        MutableComponentModel model = new MutableComponentModelImpl(CLASS_NAME, log, r, null);
View Full Code Here

    }

    @Test
    public void get_unknown_parameter()
    {
        Resource r = mockResource();
        Log log = mockLog();

        replay();

        MutableComponentModel model = new MutableComponentModelImpl(CLASS_NAME, log, r, null);
View Full Code Here

    }

    @Test
    public void add_embedded()
    {
        Resource r = mockResource();
        Log log = mockLog();
        Location l = mockLocation();

        replay();
View Full Code Here

    }

    @Test
    public void add_embedded_component_with_duplicate_id()
    {
        Resource r = mockResource();
        Log log = mockLog();

        replay();

        MutableComponentModel model = new MutableComponentModelImpl(CLASS_NAME, log, r, null);
View Full Code Here

    }

    @Test
    public void add_embedded_is_case_insensitive()
    {
        Resource r = mockResource();
        Log log = mockLog();

        replay();

        MutableComponentModel model = new MutableComponentModelImpl(CLASS_NAME, log, r, null);
View Full Code Here

TOP

Related Classes of org.apache.tapestry.ioc.Resource

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.