Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
void validateUserRegistration() {
// setup
String name = "Fulano"
int age = 20
String email = "fulano@mail.test"
// 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