@Test public void test() { context.checking(new Expectations() { { oneOf(persistResourceExecution).execute(taskHandlerActionContext); will(returnValue(null)); oneOf(transformer).transform(null); will(returnValue(null)); } }); sut.execute(taskHandlerActionContext); context.assertIsSatisfied(); }
@Override public newReturnType execute(final TaskHandlerActionContext<PrincipalActionContext> inActionContext) { return transformer.transform((originalReturnType) persistResourceExecution.execute(inActionContext)); }
PersistResourceWrapperExecution implements
        TaskHandlerExecutionStrategy<PrincipalActionContext> { @Override public newReturnType execute(final TaskHandlerActionContext<PrincipalActionContext> inActionContext) { return transformer.transform((originalReturnType) persistResourceExecution.execute(inActionContext)); } }
PersistResourceWrapperExecution implements
        TaskHandlerExecutionStrategy<PrincipalActionContext> { @Override public newReturnType execute(final TaskHandlerActionContext<PrincipalActionContext> inActionContext) { return transformer.transform((originalReturnType) persistResourceExecution.execute(inActionContext)); } PersistResourceWrapperExecution(
            final TaskHandlerExecutionStrategy<PrincipalActionContext> inPersistResourceExecution,
            final Transformer<originalReturnType, newReturnType> inTransformer); }
PersistResourceWrapperExecution implements
        TaskHandlerExecutionStrategy<PrincipalActionContext> { @Override public newReturnType execute(final TaskHandlerActionContext<PrincipalActionContext> inActionContext) { return transformer.transform((originalReturnType) persistResourceExecution.execute(inActionContext)); } PersistResourceWrapperExecution(
            final TaskHandlerExecutionStrategy<PrincipalActionContext> inPersistResourceExecution,
            final Transformer<originalReturnType, newReturnType> inTransformer); @Override newReturnType execute(final TaskHandlerActionContext<PrincipalActionContext> inActionContext); }
PersistResourceWrapperExecution implements
        TaskHandlerExecutionStrategy<PrincipalActionContext> { @Override public newReturnType execute(final TaskHandlerActionContext<PrincipalActionContext> inActionContext) { return transformer.transform((originalReturnType) persistResourceExecution.execute(inActionContext)); } PersistResourceWrapperExecution(
            final TaskHandlerExecutionStrategy<PrincipalActionContext> inPersistResourceExecution,
            final Transformer<originalReturnType, newReturnType> inTransformer); @Override newReturnType execute(final TaskHandlerActionContext<PrincipalActionContext> inActionContext);  }