Last active
November 23, 2019 15:11
-
-
Save mario-rezende-ifood/0dfcc5efbecf82f43a290772ea07c0ba to your computer and use it in GitHub Desktop.
This file contains 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
@Test | |
void validateUserRegistration() { | |
// setup | |
String name = "Fulano" | |
int age = 20 | |
String email = "[email protected]" | |
// execute | |
User user = UserService().register(name, age, email) | |
// verify | |
assertEquals(name, user.getName()); | |
assertEquals(age, user.getAge()); | |
assertEquals(email, user.getEmail()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment