Package org.apache.tapestry.annotations

Examples of org.apache.tapestry.annotations.Retain


        replay();

        ClassTransformation ct = createClassTransformation(ParentClass.class, log);

        Retain retain = ct.getFieldAnnotation("_annotatedField", Retain.class);

        assertNotNull(retain);

        verify();
    }
View Full Code Here


        replay();

        ClassTransformation ct = createClassTransformation(ParentClass.class, logger);

        Retain retain = ct.getFieldAnnotation("_annotatedField", Retain.class);

        assertNotNull(retain);

        verify();
    }
View Full Code Here

    @Test
    public void normal()
    {
        ClassTransformation ct = mockClassTransformation();
        MutableComponentModel model = mockMutableComponentModel();
        Retain annotation = newMock(Retain.class);

        train_findFieldsWithAnnotation(ct, Retain.class, "fred");

        train_getFieldAnnotation(ct, "fred", Retain.class, annotation);
View Full Code Here

        replay();

        ClassTransformation ct = createClassTransformation(ParentClass.class, logger);

        Retain retain = ct.getFieldAnnotation("_annotatedField", Retain.class);

        assertNotNull(retain);

        verify();
    }
View Full Code Here

        replay();

        ClassTransformation ct = createClassTransformation(ParentClass.class, log);

        Retain retain = ct.getFieldAnnotation("_annotatedField", Retain.class);

        assertNotNull(retain);

        verify();
    }
View Full Code Here

        replay();

        ClassTransformation ct = createClassTransformation(ParentClass.class, logger);

        Retain retain = ct.getFieldAnnotation("_annotatedField", Retain.class);

        assertNotNull(retain);

        verify();
    }
View Full Code Here

    @Test
    public void normal()
    {
        ClassTransformation ct = mockClassTransformation();
        MutableComponentModel model = mockMutableComponentModel();
        Retain annotation = newMock(Retain.class);

        train_findFieldsWithAnnotation(ct, Retain.class, "fred");

        train_getFieldAnnotation(ct, "fred", Retain.class, annotation);
View Full Code Here

     */
    public void transform(ClassTransformation transformation, MutableComponentModel model)
    {
        for (String fieldName : transformation.findFieldsWithAnnotation(Retain.class))
        {
            Retain annotation = transformation.getFieldAnnotation(fieldName, Retain.class);

            transformation.claimField(fieldName, annotation);
        }
    }
View Full Code Here

    @Test
    public void normal()
    {
        ClassTransformation ct = newClassTransformation();
        MutableComponentModel model = newMutableComponentModel();
        Retain annotation = newMock(Retain.class);

        train_findFieldsWithAnnotation(ct, Retain.class, "fred");

        train_getFieldAnnotation(ct, "fred", Retain.class, annotation);
View Full Code Here

        replay();

        ClassTransformation ct = createClassTransformation(ParentClass.class, log);

        Retain retain = ct.getFieldAnnotation("_annotatedField", Retain.class);

        assertNotNull(retain);

        verify();
    }
View Full Code Here

TOP

Related Classes of org.apache.tapestry.annotations.Retain

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.