@Test public void shouldUpdate() throws CoreTokenException { JsonValue oAuthToken = mock(JsonValue.class); Token token = mock(Token.class); given(tokenAdapter.toToken(oAuthToken)).willReturn(token); oAuthTokenStore.update(oAuthToken); verify(cts).update(token); }
public void update(JsonValue token) throws CoreTokenException { cts.update(tokenAdapter.toToken(token)); }
OAuthTokenStore { public void update(JsonValue token) throws CoreTokenException { cts.update(tokenAdapter.toToken(token)); } }
OAuthTokenStore { public void update(JsonValue token) throws CoreTokenException { cts.update(tokenAdapter.toToken(token)); } @Inject  OAuthTokenStore(CTSPersistentStore cts, TokenAdapter<JsonValue> tokenAdapter,
            TokenIdFactory tokenIdFactory); }
OAuthTokenStore { public void update(JsonValue token) throws CoreTokenException { cts.update(tokenAdapter.toToken(token)); } @Inject  OAuthTokenStore(CTSPersistentStore cts, TokenAdapter<JsonValue> tokenAdapter,
            TokenIdFactory tokenIdFactory); void create(JsonValue token); JsonValue read(String id); void update(JsonValue token); void delete(String id); JsonValue query(Map<String, Object> queryParameters); JsonValue query(Map<String, Object> queryParameters, boolean and); }
OAuthTokenStore { public void update(JsonValue token) throws CoreTokenException { cts.update(tokenAdapter.toToken(token)); } @Inject  OAuthTokenStore(CTSPersistentStore cts, TokenAdapter<JsonValue> tokenAdapter,
            TokenIdFactory tokenIdFactory); void create(JsonValue token); JsonValue read(String id); void update(JsonValue token); void delete(String id); JsonValue query(Map<String, Object> queryParameters); JsonValue query(Map<String, Object> queryParameters, boolean and);  }