@Test public void test() { context.checking(new Expectations() { { oneOf(personByIdMapper).execute(with(any(FindByIdRequest.class))); will(returnValue(person)); oneOf(transformer).transform(person); will(returnValue(ppp)); } }); assertEquals(ppp, sut.execute(PERSON_ID)); context.assertIsSatisfied(); }
@Override public PersonPagePropertiesDTO execute(final Long inRequest) { return transformer.transform(personByIdMapper.execute(new FindByIdRequest("Person", inRequest))); }
GetPersonPagePropertiesByIdDbMapper implements DomainMapper<Long, PersonPagePropertiesDTO> { @Override public PersonPagePropertiesDTO execute(final Long inRequest) { return transformer.transform(personByIdMapper.execute(new FindByIdRequest("Person", inRequest))); } }
GetPersonPagePropertiesByIdDbMapper implements DomainMapper<Long, PersonPagePropertiesDTO> { @Override public PersonPagePropertiesDTO execute(final Long inRequest) { return transformer.transform(personByIdMapper.execute(new FindByIdRequest("Person", inRequest))); } GetPersonPagePropertiesByIdDbMapper(final FindByIdMapper<Person> inPersonByIdMapper,
            final Transformer<Person, PersonPagePropertiesDTO> inTransformer); }
GetPersonPagePropertiesByIdDbMapper implements DomainMapper<Long, PersonPagePropertiesDTO> { @Override public PersonPagePropertiesDTO execute(final Long inRequest) { return transformer.transform(personByIdMapper.execute(new FindByIdRequest("Person", inRequest))); } GetPersonPagePropertiesByIdDbMapper(final FindByIdMapper<Person> inPersonByIdMapper,
            final Transformer<Person, PersonPagePropertiesDTO> inTransformer); @Override PersonPagePropertiesDTO execute(final Long inRequest); }
GetPersonPagePropertiesByIdDbMapper implements DomainMapper<Long, PersonPagePropertiesDTO> { @Override public PersonPagePropertiesDTO execute(final Long inRequest) { return transformer.transform(personByIdMapper.execute(new FindByIdRequest("Person", inRequest))); } GetPersonPagePropertiesByIdDbMapper(final FindByIdMapper<Person> inPersonByIdMapper,
            final Transformer<Person, PersonPagePropertiesDTO> inTransformer); @Override PersonPagePropertiesDTO execute(final Long inRequest);  }