@Test public void testExecute() { final String request = "a"; final String response1 = "b"; final String response2 = "c"; context.checking(new Expectations() { { oneOf(mapper1).execute(request); will(returnValue(response1)); oneOf(mapper2).execute(response1); will(returnValue(response2)); } }); assertSame(response2, sut.execute(request)); context.assertIsSatisfied(); }
@Override public Serializable execute(final Serializable inRequest) { Serializable results1 = mapper1.execute(inRequest); return mapper2.execute(results1); }
ChainedMapperWrapperMapper implements DomainMapper<Serializable, Serializable> { @Override public Serializable execute(final Serializable inRequest) { Serializable results1 = mapper1.execute(inRequest); return mapper2.execute(results1); } }
ChainedMapperWrapperMapper implements DomainMapper<Serializable, Serializable> { @Override public Serializable execute(final Serializable inRequest) { Serializable results1 = mapper1.execute(inRequest); return mapper2.execute(results1); } ChainedMapperWrapperMapper(final DomainMapper<Serializable, Serializable> inMapper1,
            final DomainMapper<Serializable, Serializable> inMapper2); }
ChainedMapperWrapperMapper implements DomainMapper<Serializable, Serializable> { @Override public Serializable execute(final Serializable inRequest) { Serializable results1 = mapper1.execute(inRequest); return mapper2.execute(results1); } ChainedMapperWrapperMapper(final DomainMapper<Serializable, Serializable> inMapper1,
            final DomainMapper<Serializable, Serializable> inMapper2); @Override Serializable execute(final Serializable inRequest); }
ChainedMapperWrapperMapper implements DomainMapper<Serializable, Serializable> { @Override public Serializable execute(final Serializable inRequest) { Serializable results1 = mapper1.execute(inRequest); return mapper2.execute(results1); } ChainedMapperWrapperMapper(final DomainMapper<Serializable, Serializable> inMapper1,
            final DomainMapper<Serializable, Serializable> inMapper2); @Override Serializable execute(final Serializable inRequest);  }