diff --git a/microsoft-azure-api/src/test/java/com/microsoft/windowsazure/serviceruntime/Protocol1RuntimeGoalStateClientTests.java b/microsoft-azure-api/src/test/java/com/microsoft/windowsazure/serviceruntime/Protocol1RuntimeGoalStateClientTests.java index 00a669a080ff..903dc9756fd7 100644 --- a/microsoft-azure-api/src/test/java/com/microsoft/windowsazure/serviceruntime/Protocol1RuntimeGoalStateClientTests.java +++ b/microsoft-azure-api/src/test/java/com/microsoft/windowsazure/serviceruntime/Protocol1RuntimeGoalStateClientTests.java @@ -153,7 +153,7 @@ public RoleEnvironmentData deserialize(InputStream stream) { } try { - Thread.sleep(1000); + Thread.sleep(2000); } catch (InterruptedException e) { e.printStackTrace(); diff --git a/microsoft-azure-api/src/test/java/com/microsoft/windowsazure/services/media/implementation/OAuthTokenManagerTest.java b/microsoft-azure-api/src/test/java/com/microsoft/windowsazure/services/media/implementation/OAuthTokenManagerTest.java index 50794db32c08..ec76153f61a7 100644 --- a/microsoft-azure-api/src/test/java/com/microsoft/windowsazure/services/media/implementation/OAuthTokenManagerTest.java +++ b/microsoft-azure-api/src/test/java/com/microsoft/windowsazure/services/media/implementation/OAuthTokenManagerTest.java @@ -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; @@ -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() { int count = 0; @@ -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(); @@ -97,7 +93,7 @@ public void clientUsesContractToGetToken() throws ServiceException, URISyntaxExc @Test public void clientWillNotCallMultipleTimesWhileAccessTokenIsValid() throws ServiceException, URISyntaxException, - JsonParseException, JsonMappingException, IOException { + IOException { // Arrange doIncrementingTokens(); @@ -117,7 +113,7 @@ public void clientWillNotCallMultipleTimesWhileAccessTokenIsValid() throws Servi @Test public void clientWillBeCalledWhenTokenIsHalfwayToExpiring() throws ServiceException, URISyntaxException, - JsonParseException, JsonMappingException, IOException { + IOException { // Arrange doIncrementingTokens();