use of org.apache.tapestry5.model.MutableComponentModel in project tapestry-5 by apache.
the class MixinAfterWorkerTest method annotation_present.
@Test
public void annotation_present() {
PlasticClass pc = newMock(PlasticClass.class);
MutableComponentModel model = mockMutableComponentModel();
expect(pc.hasAnnotation(MixinAfter.class)).andReturn(true);
model.setMixinAfter(true);
replay();
new MixinAfterWorker().transform(pc, null, model);
verify();
}
use of org.apache.tapestry5.model.MutableComponentModel in project tapestry-5 by apache.
the class SupportsInformalParametersWorkerTest method annotation_missing.
@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);
verify();
}
use of org.apache.tapestry5.model.MutableComponentModel in project tapestry-5 by apache.
the class SupportsInformalParametersWorkerTest method annotation_present.
@Test
public void annotation_present() {
PlasticClass plasticClass = mockPlasticClass();
MutableComponentModel model = mockMutableComponentModel();
expect(plasticClass.hasAnnotation(SupportsInformalParameters.class)).andReturn(true);
model.enableSupportsInformalParameters();
replay();
new SupportsInformalParametersWorker().transform(plasticClass, null, model);
verify();
}
Aggregations