@Test public void leadingTrailingSpacesRemovedFromEmployeeName() { Employee employee1 = new Employee("001", " Bob", 100_000.00); Assert.assertEquals("Bob", employee1.getName()); Employee employee2 = new Employee("002", "Alice ", 100_000.00); Assert.assertEquals("Alice", employee2.getName()); }
public String getName() { return this.name; }
Company { public String getName() { return this.name; } }
Company { public String getName() { return this.name; } Company(String newName); }
Company { public String getName() { return this.name; } Company(String newName); String getName(); void setName(String newName); void addEmployee(Employee newEmployee); void everybodyGetsRaiseBy(double incrementAsFraction); Employee findEmployeeById(String id); int numberOfEmployees(); }
Company { public String getName() { return this.name; } Company(String newName); String getName(); void setName(String newName); void addEmployee(Employee newEmployee); void everybodyGetsRaiseBy(double incrementAsFraction); Employee findEmployeeById(String id); int numberOfEmployees();  }