@Test public final void textExecute() { context.checking(new Expectations() { { oneOf(settingsMapperMock).execute(null); will(returnValue(settings)); oneOf(settings).getTermsOfService(); will(returnValue(tos)); } }); TermsOfServiceDTO tosDto = sut.execute(null); assertEquals(tos, tosDto.getTermsOfService()); context.assertIsSatisfied(); }
@Override public TermsOfServiceDTO execute(final ActionContext inActionContext) { SystemSettings settings = settingsMapper.execute(null); return new TermsOfServiceDTO(settings.getTermsOfService()); }
GetTermsOfServiceExecution implements ExecutionStrategy<ActionContext> { @Override public TermsOfServiceDTO execute(final ActionContext inActionContext) { SystemSettings settings = settingsMapper.execute(null); return new TermsOfServiceDTO(settings.getTermsOfService()); } }
GetTermsOfServiceExecution implements ExecutionStrategy<ActionContext> { @Override public TermsOfServiceDTO execute(final ActionContext inActionContext) { SystemSettings settings = settingsMapper.execute(null); return new TermsOfServiceDTO(settings.getTermsOfService()); } GetTermsOfServiceExecution(final DomainMapper<MapperRequest, SystemSettings> inSettingsMapper); }
GetTermsOfServiceExecution implements ExecutionStrategy<ActionContext> { @Override public TermsOfServiceDTO execute(final ActionContext inActionContext) { SystemSettings settings = settingsMapper.execute(null); return new TermsOfServiceDTO(settings.getTermsOfService()); } GetTermsOfServiceExecution(final DomainMapper<MapperRequest, SystemSettings> inSettingsMapper); @Override TermsOfServiceDTO execute(final ActionContext inActionContext); }
GetTermsOfServiceExecution implements ExecutionStrategy<ActionContext> { @Override public TermsOfServiceDTO execute(final ActionContext inActionContext) { SystemSettings settings = settingsMapper.execute(null); return new TermsOfServiceDTO(settings.getTermsOfService()); } GetTermsOfServiceExecution(final DomainMapper<MapperRequest, SystemSettings> inSettingsMapper); @Override TermsOfServiceDTO execute(final ActionContext inActionContext);  }