Exemple #1
0
 @Test
 public void shouldBeProperlyInitialized() {
   assertEquals(TEST, vertex.getName());
   assertNotNull(vertex.getEdges());
   assertNotNull(vertex.edges());
   assertNotNull(vertex.vertices());
 }
Exemple #2
0
 @Test
 public void shouldHaveProperToString() {
   assertNotNull(vertex.toString());
   assertTrue(vertex.toString().contains(TEST));
 }
 @Test
 public void testEqualsObjectFail() {
   assertFalse(v1.equals(v2));
 }
 @Before
 public void setUp() throws Exception {
   v1 = new Vertex<Integer>(0);
   v1_clone = new Vertex<Integer>(v1.getData());
   v2 = new Vertex<Integer>(1);
 }