Mediawiki's have a built in API see the Mediawiki API of this site.
To access such an API via Java a Mediawiki API Java Client library is needed.
See https://www.mediawiki.org/wiki/API:Client_code#Java for a list of such clients. Mediawiki-Japi is another one.
Mediawiki-Japi is built around the XML/Json messages that are used by the Mediawiki API. The API changes frequently so the structure of the Java-code needs to stay up-to-date. This is achieved by
You might want to setup the ExampleWikis in the JUnit TestSuite accordingly. (as of 0.1.06 you might want to change the code).
Most of the example wikis are public open wikis where you can sign up yourself.
If you'd like to run the JUnit tests with write-access to our test wikis at http://medawiki-japi.bitplan.com please contact Wolfgang Fahl. We'll then temporarily open up our wiki for you to sign up. If enough people sign up we'll keep the wiki open and install SPAM protection.