Added smoke test - run through a few api calls - to verify that the parameters are all correctly encoded and sent, and responses are parsed.

This commit is contained in:
Paul Hawke 2017-07-04 22:27:42 -05:00
parent d64c1b51cc
commit c035b368c4
3 changed files with 231 additions and 1 deletions

View file

@ -63,7 +63,7 @@ public class ApacheHttpClientMediaWikiApi implements MediaWikiApi {
.param("rememberMe", "1")
.param("username", username)
.param("password", password)
.param("logintoken", this.getLoginToken())
.param("logintoken", getLoginToken())
.param("loginreturnurl", "https://commons.wikimedia.org")
.post());
}