@Test public void test() { ExecuteDomainMapperExecution sut = new ExecuteDomainMapperExecution(parameterSupplier, domainMapper); context.checking(new Expectations() { { oneOf(parameterSupplier).transform(with(same(actionContext))); will(returnValue(parameter)); oneOf(domainMapper).execute(with(same(parameter))); will(returnValue(mapperResult)); } }); Serializable result = sut.execute(actionContext); context.assertIsSatisfied(); assertSame(result, mapperResult); }
@Override public Serializable execute(final ActionContext inActionContext) { Serializable param = parameterSupplier.transform(inActionContext); return domainMapper.execute(param); }
ExecuteDomainMapperExecution implements ExecutionStrategy<ActionContext> { @Override public Serializable execute(final ActionContext inActionContext) { Serializable param = parameterSupplier.transform(inActionContext); return domainMapper.execute(param); } }
ExecuteDomainMapperExecution implements ExecutionStrategy<ActionContext> { @Override public Serializable execute(final ActionContext inActionContext) { Serializable param = parameterSupplier.transform(inActionContext); return domainMapper.execute(param); } ExecuteDomainMapperExecution(final Transformer<ActionContext, Serializable> inParameterSupplier,
            final DomainMapper<Serializable, Serializable> inDomainMapper); }
ExecuteDomainMapperExecution implements ExecutionStrategy<ActionContext> { @Override public Serializable execute(final ActionContext inActionContext) { Serializable param = parameterSupplier.transform(inActionContext); return domainMapper.execute(param); } ExecuteDomainMapperExecution(final Transformer<ActionContext, Serializable> inParameterSupplier,
            final DomainMapper<Serializable, Serializable> inDomainMapper); @Override Serializable execute(final ActionContext inActionContext); }
ExecuteDomainMapperExecution implements ExecutionStrategy<ActionContext> { @Override public Serializable execute(final ActionContext inActionContext) { Serializable param = parameterSupplier.transform(inActionContext); return domainMapper.execute(param); } ExecuteDomainMapperExecution(final Transformer<ActionContext, Serializable> inParameterSupplier,
            final DomainMapper<Serializable, Serializable> inDomainMapper); @Override Serializable execute(final ActionContext inActionContext);  }