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