Package org.apache.tapestry.ioc

Examples of org.apache.tapestry.ioc.Location


    @Test
    public void object_can_not_be_instantiated()
    {
        ComponentResources resources = mockComponentResources();
        Location l = mockLocation();
        Environment environment = mockEnvironment();

        expect(resources.triggerEvent(Form.PREPARE, null, null)).andReturn(false);

        train_push(environment, PropertyEditContext.class);
View Full Code Here


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

        replay();

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

    @Test
    public void to_string_and_location()
    {
        Binding inner = mockBinding();
        Location l = mockLocation();

        replay();

        InheritedBinding binding = new InheritedBinding(BINDING_DESCRIPTION, inner, l);
View Full Code Here

    @Test
    public void get_success()
    {
        Binding inner = mockBinding();
        Location l = mockLocation();
        Object expected = new Object();

        train_get(inner, expected);

        replay();
View Full Code Here

    @Test
    public void get_failure()
    {
        Binding inner = mockBinding();
        Location l = mockLocation();

        expect(inner.get()).andThrow(_exception);

        replay();
View Full Code Here

    @Test
    public void get_binding_type_success()
    {
        Binding inner = mockBinding();
        Location l = mockLocation();
        Class expected = Runnable.class;

        expect(inner.getBindingType()).andReturn(expected);

        replay();
View Full Code Here

    @Test
    public void get_binding_type_failure()
    {
        Binding inner = mockBinding();
        Location l = mockLocation();
        String description = BINDING_DESCRIPTION;

        expect(inner.getBindingType()).andThrow(_exception);

        replay();
View Full Code Here

    @Test
    public void is_invariant_success()
    {
        Binding inner = mockBinding();
        Location l = mockLocation();
        boolean expected = true;

        expect(inner.isInvariant()).andReturn(expected);

        replay();
View Full Code Here

    @Test
    public void is_invariant_failure()
    {
        Binding inner = mockBinding();
        Location l = mockLocation();
        expect(inner.isInvariant()).andThrow(_exception);

        replay();

        InheritedBinding binding = new InheritedBinding(BINDING_DESCRIPTION, inner, l);
View Full Code Here

    @Test
    public void set_success()
    {
        Binding inner = mockBinding();
        Location l = mockLocation();
        String description = BINDING_DESCRIPTION;
        Object parameter = new Object();

        inner.set(parameter);
View Full Code Here

TOP

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

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.