Skip to content

Instantly share code, notes, and snippets.

@renanreismartins
Last active December 21, 2015 23:49
Show Gist options
  • Save renanreismartins/6384582 to your computer and use it in GitHub Desktop.
Save renanreismartins/6384582 to your computer and use it in GitHub Desktop.
@Test
public void verificaSePossuiValor() {
String[] expected = { "Renan", null, "Paulo"};
for (int i = 0; i < names.size(); i++) {
Option<String> option = names.get(i);
if (option.hasValue()) {
String value = option.get();
System.out.println(option + " = " + value);
assertEquals(expected[i], value);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment