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