@Test public void testToString() throws RepositoryException { final String text = e.toString(); assertTrue("Should contain path: " + text, text.contains(e.getPath())); assertTrue("Should contain info: " + text, text.contains(e.getInfo().toString())); assertTrue( "Should contain types: " + text, text.contains(Integer.toString(e.getTypes().iterator().next()))); assertTrue("Should contain date: " + text, text.contains(Long.toString(e.getDate()))); assertFalse("Should not contain user-data: " + text, text.contains(e.getUserData())); assertFalse("Should not contain identifier: " + text, text.contains(e.getIdentifier())); assertFalse("Should not contain user-id: " + text, text.contains(e.getUserID())); }
@Test public void testGetInfo() throws Exception { final Map<?, ?> m = e.getInfo(); assertEquals("2", m.get("1")); }