@Test public void testSuccessfulRemoval() { context.checking(new Expectations() { { oneOf(actionContext).getParams(); will(returnValue("testtoken")); oneOf(deleteMapper).execute("testtoken"); } }); sut.execute(actionContext); context.assertIsSatisfied(); }
@Override public Serializable execute(final PrincipalActionContext inActionContext) throws ExecutionException { String token = (String) inActionContext.getParams(); deleteMapper.execute(token); return null; }
RemoveOAuthTokenExecution implements ExecutionStrategy<PrincipalActionContext> { @Override public Serializable execute(final PrincipalActionContext inActionContext) throws ExecutionException { String token = (String) inActionContext.getParams(); deleteMapper.execute(token); return null; } }
RemoveOAuthTokenExecution implements ExecutionStrategy<PrincipalActionContext> { @Override public Serializable execute(final PrincipalActionContext inActionContext) throws ExecutionException { String token = (String) inActionContext.getParams(); deleteMapper.execute(token); return null; } RemoveOAuthTokenExecution(final DomainMapper<String, Boolean> inDomainMapper); }
RemoveOAuthTokenExecution implements ExecutionStrategy<PrincipalActionContext> { @Override public Serializable execute(final PrincipalActionContext inActionContext) throws ExecutionException { String token = (String) inActionContext.getParams(); deleteMapper.execute(token); return null; } RemoveOAuthTokenExecution(final DomainMapper<String, Boolean> inDomainMapper); @Override Serializable execute(final PrincipalActionContext inActionContext); }
RemoveOAuthTokenExecution implements ExecutionStrategy<PrincipalActionContext> { @Override public Serializable execute(final PrincipalActionContext inActionContext) throws ExecutionException { String token = (String) inActionContext.getParams(); deleteMapper.execute(token); return null; } RemoveOAuthTokenExecution(final DomainMapper<String, Boolean> inDomainMapper); @Override Serializable execute(final PrincipalActionContext inActionContext);  }