@Test public void test() { final CommentDTO comment = mockery.mock(CommentDTO.class); mockery.checking(new Expectations() { { allowing(comment).getActivityId(); will(returnValue(8L)); } }); ActivityIdFromCommentDTOTransformer sut = new ActivityIdFromCommentDTOTransformer(); assertEquals((Long) 8L, sut.transform(comment)); mockery.assertIsSatisfied(); }
@Override public Long transform(final Serializable inTransformType) { return ((CommentDTO) inTransformType).getActivityId(); }
ActivityIdFromCommentDTOTransformer implements Transformer<Serializable, Long> { @Override public Long transform(final Serializable inTransformType) { return ((CommentDTO) inTransformType).getActivityId(); } }
ActivityIdFromCommentDTOTransformer implements Transformer<Serializable, Long> { @Override public Long transform(final Serializable inTransformType) { return ((CommentDTO) inTransformType).getActivityId(); }  }
ActivityIdFromCommentDTOTransformer implements Transformer<Serializable, Long> { @Override public Long transform(final Serializable inTransformType) { return ((CommentDTO) inTransformType).getActivityId(); }  @Override Long transform(final Serializable inTransformType); }
ActivityIdFromCommentDTOTransformer implements Transformer<Serializable, Long> { @Override public Long transform(final Serializable inTransformType) { return ((CommentDTO) inTransformType).getActivityId(); }  @Override Long transform(final Serializable inTransformType);  }