@Test public void testExecute() { final String request = "aaaaaa"; final String mapperResponse = "bbbbbbb"; final String transformResponse = "ccccccc"; context.checking(new Expectations() { { oneOf(domainMapper).execute(request); will(returnValue(mapperResponse)); oneOf(transformer).transform(mapperResponse); will(returnValue(transformResponse)); } }); assertSame(transformResponse, sut.execute(request)); context.assertIsSatisfied(); }
@Override public Serializable execute(final Serializable inRequest) { Serializable results = domainMapper.execute(inRequest); return transformer.transform(results); }
DomainMapperTransformer implements DomainMapper<Serializable, Serializable> { @Override public Serializable execute(final Serializable inRequest) { Serializable results = domainMapper.execute(inRequest); return transformer.transform(results); } }
DomainMapperTransformer implements DomainMapper<Serializable, Serializable> { @Override public Serializable execute(final Serializable inRequest) { Serializable results = domainMapper.execute(inRequest); return transformer.transform(results); } DomainMapperTransformer(final DomainMapper<Serializable, Serializable> inDomainMapper,
            final Transformer<Serializable, Serializable> inTransformer); }
DomainMapperTransformer implements DomainMapper<Serializable, Serializable> { @Override public Serializable execute(final Serializable inRequest) { Serializable results = domainMapper.execute(inRequest); return transformer.transform(results); } DomainMapperTransformer(final DomainMapper<Serializable, Serializable> inDomainMapper,
            final Transformer<Serializable, Serializable> inTransformer); @Override Serializable execute(final Serializable inRequest); }
DomainMapperTransformer implements DomainMapper<Serializable, Serializable> { @Override public Serializable execute(final Serializable inRequest) { Serializable results = domainMapper.execute(inRequest); return transformer.transform(results); } DomainMapperTransformer(final DomainMapper<Serializable, Serializable> inDomainMapper,
            final Transformer<Serializable, Serializable> inTransformer); @Override Serializable execute(final Serializable inRequest);  }