Page implements WikiConstants { public Set<Page> getInlinks() { Session session = wiki.__getHibernateSession(); session.beginTransaction(); session.buildLockRequest(LockOptions.NONE).lock(hibernatePage); Set<Integer> pageIDs = new UnmodifiableArraySet<Integer>(hibernatePage.getInLinks()); session.getTransaction().commit(); Set<Page> pages = new HashSet<Page>(); for (int pageID : pageIDs) { try { pages.add(wiki.getPage(pageID)); } catch (WikiApiException e) { continue; } } return pages; } protected  Page(Wikipedia wiki, long id); protected  Page(Wikipedia wiki, int pageID);  Page(Wikipedia wiki, String pName);  Page(Wikipedia wiki, String pName, boolean useExactTitle); protected  Page(Wikipedia wiki, long id,
			de.tudarmstadt.ukp.wikipedia.api.hibernate.Page hibernatePage); int getPageId(); Set<Category> getCategories(); int getNumberOfCategories(); Set<Page> getInlinks(); int getNumberOfInlinks(); Set<Integer> getInlinkIDs(); Set<Page> getOutlinks(); int getNumberOfOutlinks(); Set<Integer> getOutlinkIDs(); Title getTitle(); Set<String> getRedirects(); String getText(); boolean isDisambiguation(); boolean isRedirect(); boolean isDiscussion(); String getPlainText();  }
@Test public void testGetInlinks() { Set<Page> inlinks = page.getInlinks(); assertNotNull(inlinks); assertFalse(inlinks.isEmpty()); assertEquals(3, inlinks.size()); }