@Test public void testValidTreatmentName() throws ValidationException { String name = "abc"; final Treatment treatment = new Treatment(name, "a treatment with a valid name"); assertEquals(treatment.getName(), name); }
public String getName() { return name; }
Treatment implements Named { public String getName() { return name; } }
Treatment implements Named { public String getName() { return name; } Treatment(String name);  Treatment(String name, String description); }
Treatment implements Named { public String getName() { return name; } Treatment(String name);  Treatment(String name, String description); String getName(); String getDescription(); void setDescription(String description); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
Treatment implements Named { public String getName() { return name; } Treatment(String name);  Treatment(String name, String description); String getName(); String getDescription(); void setDescription(String description); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }