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