@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); verify(); }
public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { if (plasticClass.hasAnnotation(MixinAfter.class)) { model.setMixinAfter(true); } }
MixinAfterWorker implements ComponentClassTransformWorker2 { public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { if (plasticClass.hasAnnotation(MixinAfter.class)) { model.setMixinAfter(true); } } }
MixinAfterWorker implements ComponentClassTransformWorker2 { public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { if (plasticClass.hasAnnotation(MixinAfter.class)) { model.setMixinAfter(true); } }  }
MixinAfterWorker implements ComponentClassTransformWorker2 { public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { if (plasticClass.hasAnnotation(MixinAfter.class)) { model.setMixinAfter(true); } }  void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model); }
MixinAfterWorker implements ComponentClassTransformWorker2 { public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { if (plasticClass.hasAnnotation(MixinAfter.class)) { model.setMixinAfter(true); } }  void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model);  }