@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(); }
public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { if (plasticClass.hasAnnotation(SupportsInformalParameters.class)) { model.enableSupportsInformalParameters(); } }
SupportsInformalParametersWorker implements ComponentClassTransformWorker2 { public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { if (plasticClass.hasAnnotation(SupportsInformalParameters.class)) { model.enableSupportsInformalParameters(); } } }
SupportsInformalParametersWorker implements ComponentClassTransformWorker2 { public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { if (plasticClass.hasAnnotation(SupportsInformalParameters.class)) { model.enableSupportsInformalParameters(); } }  }
SupportsInformalParametersWorker implements ComponentClassTransformWorker2 { public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { if (plasticClass.hasAnnotation(SupportsInformalParameters.class)) { model.enableSupportsInformalParameters(); } }  void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model); }
SupportsInformalParametersWorker implements ComponentClassTransformWorker2 { public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) { if (plasticClass.hasAnnotation(SupportsInformalParameters.class)) { model.enableSupportsInformalParameters(); } }  void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model);  }