Skip to content

Commit

Permalink
#72 Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
magx2 committed May 29, 2020
1 parent 4feca12 commit e827051
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ApiClientFactorySpec extends Specification {

then:
IllegalArgumentException ex = thrown()
ex.message == "OAuth token does not contain '.' (dot)!"
ex.message.startsWith("OAuth token does not contain '.' (dot)! Token: ")
}

def "should throw exception when there is too many dots in token"() {
Expand All @@ -58,6 +58,6 @@ class ApiClientFactorySpec extends Specification {

then:
IllegalArgumentException ex = thrown()
ex.message.startsWith("OAuth token has too many '.' (dot) ")
ex.message.startsWith("OAuth token has too many '.' (dot) 3! Token: ")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ ApiClient newApiClient(String oAuthToken, String url) {
*/
@Deprecated
ApiClient newApiClient(String oAuthToken) {
return newApiClient(oAuthToken, (String) null);
return newApiClient(oAuthToken, (ApiUsageStatisticsSetter) null);
}
}

0 comments on commit e827051

Please sign in to comment.