/** Method: hashCode() */ @Test public void testHashCode() throws Exception { ConfigurationFolder folder = new ConfigurationFolder("id", "name", "path"); ConfigurationFolder folder2 = new ConfigurationFolder("id", "name", "path"); ConfigurationFolder folder3 = new ConfigurationFolder("id3", "name", "path"); assertEquals(folder.hashCode(), folder2.hashCode()); assertNotEquals(folder.hashCode(), folder3.hashCode()); }
/** Method: setPath(final String path) */ @Test public void testSetPath() throws Exception { ConfigurationFolder folder = new ConfigurationFolder("id", "name", "path"); folder.setPath("path2"); assertEquals(folder.getPath(), "path2"); }
/** Method: getName() */ @Test public void testGetName() throws Exception { ConfigurationFolder folder = new ConfigurationFolder("id", "name", "path"); assertEquals(folder.getName(), "name"); }