Ejemplo n.º 1
0
 /** 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());
 }
Ejemplo n.º 2
0
 /** 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");
 }
Ejemplo n.º 3
0
 /** Method: getName() */
 @Test
 public void testGetName() throws Exception {
   ConfigurationFolder folder = new ConfigurationFolder("id", "name", "path");
   assertEquals(folder.getName(), "name");
 }