Created
December 11, 2019 15:53
-
-
Save mariorez/81ac5e3de6a7c9ca9468fd95d08f1b3b 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
@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