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