Skip to content
Merged

Dev #338

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public RoleEnvironmentData deserialize(InputStream stream) {
}

try {
Thread.sleep(1000);
Thread.sleep(2000);
}
catch (InterruptedException e) {
e.printStackTrace();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
import java.util.Date;
import java.util.TimeZone;

import org.codehaus.jackson.JsonParseException;
import org.codehaus.jackson.map.JsonMappingException;
import org.junit.Before;
import org.junit.Test;
import org.mockito.invocation.InvocationOnMock;
Expand Down Expand Up @@ -64,8 +62,7 @@ public Date answer(InvocationOnMock invocation) throws Throwable {
});
}

private void doIncrementingTokens() throws ServiceException, URISyntaxException, JsonParseException,
JsonMappingException, IOException {
private void doIncrementingTokens() throws ServiceException, URISyntaxException, IOException {
doAnswer(new Answer<OAuthTokenResponse>() {
int count = 0;

Expand All @@ -82,8 +79,7 @@ public OAuthTokenResponse answer(InvocationOnMock invocation) throws Throwable {
}

@Test
public void clientUsesContractToGetToken() throws ServiceException, URISyntaxException, JsonParseException,
JsonMappingException, IOException {
public void clientUsesContractToGetToken() throws ServiceException, URISyntaxException, IOException {
// Arrange
doIncrementingTokens();

Expand All @@ -97,7 +93,7 @@ public void clientUsesContractToGetToken() throws ServiceException, URISyntaxExc

@Test
public void clientWillNotCallMultipleTimesWhileAccessTokenIsValid() throws ServiceException, URISyntaxException,
JsonParseException, JsonMappingException, IOException {
IOException {
// Arrange
doIncrementingTokens();

Expand All @@ -117,7 +113,7 @@ public void clientWillNotCallMultipleTimesWhileAccessTokenIsValid() throws Servi

@Test
public void clientWillBeCalledWhenTokenIsHalfwayToExpiring() throws ServiceException, URISyntaxException,
JsonParseException, JsonMappingException, IOException {
IOException {
// Arrange
doIncrementingTokens();

Expand Down