BAEL-3951: Corrected misspelling.
This commit is contained in:
parent
69c50660de
commit
48d1c94dc0
|
@ -4,7 +4,7 @@ import java.util.Objects;
|
||||||
|
|
||||||
public record Person (String name, String address) {
|
public record Person (String name, String address) {
|
||||||
|
|
||||||
public static String UNKWOWN_ADDRESS = "Unknown";
|
public static String UNKNOWN_ADDRESS = "Unknown";
|
||||||
public static String UNNAMED = "Unnamed";
|
public static String UNNAMED = "Unnamed";
|
||||||
|
|
||||||
public Person {
|
public Person {
|
||||||
|
@ -13,7 +13,7 @@ public record Person (String name, String address) {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Person(String name) {
|
public Person(String name) {
|
||||||
this(name, UNKWOWN_ADDRESS);
|
this(name, UNKNOWN_ADDRESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Person unnamed(String address) {
|
public static Person unnamed(String address) {
|
||||||
|
|
|
@ -134,7 +134,7 @@ public class PersonTest {
|
||||||
Person person = new Person(name);
|
Person person = new Person(name);
|
||||||
|
|
||||||
assertEquals(name, person.name());
|
assertEquals(name, person.name());
|
||||||
assertEquals(Person.UNKWOWN_ADDRESS, person.address());
|
assertEquals(Person.UNKNOWN_ADDRESS, person.address());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue