MetaData implements WikiConstants { public String getVersion() throws WikiApiException { Session session = this.wiki.__getHibernateSession(); session.beginTransaction(); session.lock(hibernateMetaData, LockMode.NONE); String version = hibernateMetaData.getVersion(); session.getTransaction().commit(); return version; } protected  MetaData(Wikipedia wiki); long getNumberOfCategories(); long getNumberOfPages(); long getNumberOfDisambiguationPages(); long getNumberOfRedirectPages(); Category getDisambiguationCategory(); Category getMainCategory(); String getVersion(); Language getLanguage();  }
@Test public void testGetVersion() { try { String version = metaData.getVersion(); assertNotNull(version); assertFalse(version.isEmpty()); assertEquals("1.0", version); } catch (WikiApiException e) { fail("A WikiApiException occurred while getting the disambiguation category: " + e.getLocalizedMessage()); } }