/** Test of removeVertex method, of class EventsTreeAdapter. */ public void testRemoveVertex() { int width = 500, height = 500; System.out.println("removeVertex"); mxGraphComponent mxGraphComponent1 = new mxGraphComponent(new mxGraph()); mxGraphComponent1.setBounds(0, 0, width, height); expect(drawPanel.getComponents()).andReturn(new Component[] {mxGraphComponent1}).anyTimes(); replay(drawPanel); instance.draw(drawPanel); instance.draw(drawPanel); instance.draw(drawPanel); instance.removeVertex(eventTreeUtil.getCellByID("" + 3)); String str = checkIfAllGettersThrowNull("" + 3, "" + 4); // assertNull(eventTreeUtil.getCellByID(""+3)); // assertNull(eventTreeUtil.getCellByID(""+4)); if (str != null) { fail(str); } assertNull(str); }