BAEL-3951: Corrected misspelling.

This commit is contained in:
Justin Albano 2020-05-13 06:06:58 -04:00
parent 69c50660de
commit 48d1c94dc0
2 changed files with 172 additions and 172 deletions

View File

@ -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) {

View File

@ -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