@Test public void test() { context.checking(new Expectations() { { oneOf(originalObject).getShortName(); will(returnValue("gsn")); oneOf(originalObject).isPending(); will(returnValue(false)); } }); DomainGroupModelView dgmv = sut.transform(originalObject); assertEquals("gsn", dgmv.getShortName()); assertEquals(false, dgmv.isPending()); context.assertIsSatisfied(); }
@Override public DomainGroupModelView transform(final DomainGroup inTransformType) { DomainGroupModelView result = new DomainGroupModelView(); result.setShortName(inTransformType.getShortName()); result.setPending(inTransformType.isPending()); return result; }
DomainGroupToDomainGroupModelViewTransfomer implements Transformer<DomainGroup, DomainGroupModelView> { @Override public DomainGroupModelView transform(final DomainGroup inTransformType) { DomainGroupModelView result = new DomainGroupModelView(); result.setShortName(inTransformType.getShortName()); result.setPending(inTransformType.isPending()); return result; } }
DomainGroupToDomainGroupModelViewTransfomer implements Transformer<DomainGroup, DomainGroupModelView> { @Override public DomainGroupModelView transform(final DomainGroup inTransformType) { DomainGroupModelView result = new DomainGroupModelView(); result.setShortName(inTransformType.getShortName()); result.setPending(inTransformType.isPending()); return result; }  }
DomainGroupToDomainGroupModelViewTransfomer implements Transformer<DomainGroup, DomainGroupModelView> { @Override public DomainGroupModelView transform(final DomainGroup inTransformType) { DomainGroupModelView result = new DomainGroupModelView(); result.setShortName(inTransformType.getShortName()); result.setPending(inTransformType.isPending()); return result; }  @Override DomainGroupModelView transform(final DomainGroup inTransformType); }
DomainGroupToDomainGroupModelViewTransfomer implements Transformer<DomainGroup, DomainGroupModelView> { @Override public DomainGroupModelView transform(final DomainGroup inTransformType) { DomainGroupModelView result = new DomainGroupModelView(); result.setShortName(inTransformType.getShortName()); result.setPending(inTransformType.isPending()); return result; }  @Override DomainGroupModelView transform(final DomainGroup inTransformType);  }