@Test public void testClear() { ServersListPanel obj = new ServersListPanel(); new JPanel().add(obj); assertEquals(0, obj.getCount()); obj.add("Test"); assertEquals(1, obj.getCount()); obj.clear(); assertEquals(0, obj.getCount()); }
public void clear() { serversList.clear(); removeAll(); getParent().repaint(); }
ServersListPanel extends JPanel { public void clear() { serversList.clear(); removeAll(); getParent().repaint(); } }
ServersListPanel extends JPanel { public void clear() { serversList.clear(); removeAll(); getParent().repaint(); } ServersListPanel(); }
ServersListPanel extends JPanel { public void clear() { serversList.clear(); removeAll(); getParent().repaint(); } ServersListPanel(); void clear(); void saveToTestElement(DistributedTestControl te); void loadFromTestElement(DistributedTestControl te); void add(String stringValue); int getCount(); void removeServer(JMeterServerPanel jMeterServerPanel); }
ServersListPanel extends JPanel { public void clear() { serversList.clear(); removeAll(); getParent().repaint(); } ServersListPanel(); void clear(); void saveToTestElement(DistributedTestControl te); void loadFromTestElement(DistributedTestControl te); void add(String stringValue); int getCount(); void removeServer(JMeterServerPanel jMeterServerPanel);  }