@Override protected Filter postPopulate(Filter model) { model.setId(ID); SchedulingPolicyUnit schedulingPolicyUnit = new SchedulingPolicyUnit(); schedulingPolicyUnit.setId(ID); model.setSchedulingPolicyUnit(schedulingPolicyUnit); model.setPosition(0); return model; }
@Override protected void verify(Filter model, Filter transform) { assertNotNull(transform); assertEquals(model.getId(), transform.getId()); assertEquals( model.getSchedulingPolicyUnit().getId(), transform.getSchedulingPolicyUnit().getId()); assertEquals(model.getPosition(), transform.getPosition()); }
@Override protected Filter getModel(Filter filter) { filter = new Filter(); filter.setId(ID); return filter; }