@Test public void test() { context.checking(new Expectations() { { oneOf(objectToTransform).getShortName(); will(returnValue("blah")); } }); assertEquals("blah", sut.transform(objectToTransform)); context.assertIsSatisfied(); }
@Override public String transform(final DomainGroupModelView inTransformType) { return inTransformType.getShortName(); }
GroupToShortNameTransformer implements Transformer<DomainGroupModelView, String> { @Override public String transform(final DomainGroupModelView inTransformType) { return inTransformType.getShortName(); } }
GroupToShortNameTransformer implements Transformer<DomainGroupModelView, String> { @Override public String transform(final DomainGroupModelView inTransformType) { return inTransformType.getShortName(); }  }
GroupToShortNameTransformer implements Transformer<DomainGroupModelView, String> { @Override public String transform(final DomainGroupModelView inTransformType) { return inTransformType.getShortName(); }  @Override String transform(final DomainGroupModelView inTransformType); }
GroupToShortNameTransformer implements Transformer<DomainGroupModelView, String> { @Override public String transform(final DomainGroupModelView inTransformType) { return inTransformType.getShortName(); }  @Override String transform(final DomainGroupModelView inTransformType);  }