Skip to content

Commit

Permalink
Fixed broken tests. (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Feb 4, 2018
1 parent 01577e0 commit 2235a4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/bunq/sdk/http/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ private static String getResponseId(Response response) {

/**
*/
private static void assertResponseSuccess(int responseCode, byte[] responseBodyBytes, String responseId) {
if (Pattern.matches(OK_STATUS_CODE_RANGE, responseId)) {
private static void assertResponseSuccess(Integer responseCode, byte[] responseBodyBytes, String responseId) {
if (!Pattern.matches(OK_STATUS_CODE_RANGE, responseCode.toString())) {
throw createApiExceptionRequestUnsuccessful(responseCode, new String(responseBodyBytes), responseId);
}
}
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/bunq/sdk/json/PaginationAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,3 @@ private void updatePaginationBodyFromResponseField(
}

}
1

0 comments on commit 2235a4a

Please sign in to comment.