MetaData implements WikiConstants { public long getNumberOfRedirectPages() { Session session = this.wiki.__getHibernateSession(); session.beginTransaction(); session.lock(hibernateMetaData, LockMode.NONE); long nrofRedirects = hibernateMetaData.getNrofRedirects(); session.getTransaction().commit(); return nrofRedirects; } protected  MetaData(Wikipedia wiki); long getNumberOfCategories(); long getNumberOfPages(); long getNumberOfDisambiguationPages(); long getNumberOfRedirectPages(); Category getDisambiguationCategory(); Category getMainCategory(); String getVersion(); Language getLanguage();  }
@Test public void testGetNumberOfRedirectPages() { long numberOfRedirectPages = metaData.getNumberOfRedirectPages(); assertTrue(numberOfRedirectPages > 0); assertEquals(6, numberOfRedirectPages); }