Created
March 23, 2021 14:46
-
-
Save bufferings/18fda719474743e62c990b1a3ef7a12f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
record FullName(String firstName, String lastName) {} | |
@Test | |
void testRecords() { | |
var fullName = new FullName("Mitsuyuki", "Shiiba"); | |
assertEquals("Mitsuyuki", fullName.firstName()); | |
assertEquals("Shiiba", fullName.lastName()); | |
assertEquals("FullName[firstName=Mitsuyuki, lastName=Shiiba]", fullName.toString()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment