Examples of PlasticClass


Examples of org.apache.tapestry5.plastic.PlasticClass

public class MixinAfterWorkerTest extends InternalBaseTestCase
{
    @Test
    public void annotation_not_present()
    {
        PlasticClass pc = newMock(PlasticClass.class);
        MutableComponentModel model = mockMutableComponentModel();

        expect(pc.hasAnnotation(MixinAfter.class)).andReturn(false);

        replay();

        new MixinAfterWorker().transform(pc, null, model);
View Full Code Here

Examples of org.apache.tapestry5.plastic.PlasticClass

    }

    @Test
    public void annotation_present()
    {
        PlasticClass pc = newMock(PlasticClass.class);
        MutableComponentModel model = mockMutableComponentModel();


        expect(pc.hasAnnotation(MixinAfter.class)).andReturn(true);

        model.setMixinAfter(true);

        replay();
View Full Code Here

Examples of org.apache.tapestry5.plastic.PlasticClass

    }

    @Test
    public void annotation_present()
    {
        PlasticClass plasticClass = mockPlasticClass();

        MutableComponentModel model = mockMutableComponentModel();

        expect(plasticClass.hasAnnotation(SupportsInformalParameters.class)).andReturn(true);

        model.enableSupportsInformalParameters();

        replay();
View Full Code Here

Examples of org.apache.tapestry5.plastic.PlasticClass

    }

    @Test
    public void annotation_missing()
    {
        PlasticClass plasticClass = mockPlasticClass();

        MutableComponentModel model = mockMutableComponentModel();

        expect(plasticClass.hasAnnotation(SupportsInformalParameters.class)).andReturn(false);

        replay();

        new SupportsInformalParametersWorker().transform(plasticClass, null, model);
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.