Помогите пожалуйста, не проходит тест: assertEquals("Clint Eastwood", new Dinglemouse("Clint", "Eastwood").getFullName()); Выдает ошибку: expected: Clint[] but was:Clint[ ]
public class Dinglemouse {
private String firstName;
private String lastName;
public Dinglemouse(String firstName, String lastName) {
this.firstName = firstName;
this.lastName = lastName;
}
public String getFullName() {
if(firstName != "" && lastName != "") {
return this.firstName + " " + this.lastName;
}
if(firstName == "" && lastName == "") {
return "";
}
return firstName == "" ? lastName : firstName;
}
}