use of com.qcadoo.mes.orders.constants.deviationReasonTypes.DeviationModelDescriber in project mes by qcadoo.
the class CommonReasonTypeModelHooksTest method init.
@Before
public void init() {
MockitoAnnotations.initMocks(this);
commonReasonTypeModelHooks = new CommonReasonTypeModelHooks();
deviationModelDescriber = new DeviationModelDescriber("reasonPlugin", "reasonModel", "reasonField");
DataDefinitionService dataDefinitionService = mock(DataDefinitionService.class);
given(dataDefinitionService.get(deviationModelDescriber.getModelPlugin(), deviationModelDescriber.getModelName())).willReturn(reasonDD);
ReflectionTestUtils.setField(commonReasonTypeModelHooks, "dataDefinitionService", dataDefinitionService);
}
Aggregations