Skip to content

Commit

Permalink
Merge pull request #38 from gcheng/codehausbugfix
Browse files Browse the repository at this point in the history
fix for issue 314, remove codehaus exception
  • Loading branch information
Albert Cheng committed May 10, 2013
2 parents d292204 + 40d1b00 commit 112fde7
Showing 1 changed file with 4 additions and 8 deletions.
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

0 comments on commit 112fde7

Please sign in to comment.