Ejemplo n.º 1
0
  /**
   * Test.
   *
   * @throws Exception a
   */
  @Test
  public final void deleteWikiMW1x16() throws Exception {

    bot = BotFactory.getMediaWikiBot(Version.MW1_16, true);
    assertTrue("Wrong Wiki Version " + bot.getVersion(), Version.MW1_16.equals(bot.getVersion()));

    prepare(bot);
    delete(bot);
    test(bot);
  }
Ejemplo n.º 2
0
 @Ignore
 @Test
 public void deleteAll() throws Exception {
   Version[] all = {Version.MW1_15, Version.MW1_16};
   for (Version v : all) {
     MediaWikiBot bot = BotFactory.getMediaWikiBot(v, true);
     AllPageTitles aPages = new AllPageTitles(bot, MediaWiki.NS_MAIN);
     for (String string : aPages) {
       System.out.println(string);
     }
   }
 }