private boolean isValidName(Test test) { for (Test t : childTest) { if (t.getName().equals(test.getName())) { return false; } } return true; }
public void addTest(Test test) { if (isValidName(test)) { childTest.add(test); } else { System.out.println("El test " + test.getName() + " ya existe en la suite " + getName()); } }