Skip to content

Instantly share code, notes, and snippets.

@mario-rezende-ifood
Last active November 23, 2019 15:11
Show Gist options
  • Save mario-rezende-ifood/0dfcc5efbecf82f43a290772ea07c0ba to your computer and use it in GitHub Desktop.
Save mario-rezende-ifood/0dfcc5efbecf82f43a290772ea07c0ba 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