Skip to content

Instantly share code, notes, and snippets.

@mariorez
Created December 11, 2019 15:53
Show Gist options
  • Save mariorez/81ac5e3de6a7c9ca9468fd95d08f1b3b to your computer and use it in GitHub Desktop.
Save mariorez/81ac5e3de6a7c9ca9468fd95d08f1b3b to your computer and use it in GitHub Desktop.
@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