public static void testQueryLinks001() {
String[] listOfTitleStrings = { "Main Page", "API" };
User user = new User("", "", "http://meta.wikimedia.org/w/api.php");
user.login();
List<Page> listOfPages = user.queryLinks(listOfTitleStrings);
for (Page page : listOfPages) {
// print page information
System.out.println(page.toString());
for (int j = 0; j < page.sizeOfLinksList(); j++) {
Link link = page.getLink(j);