Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Sample JUnit
public String railways(String name, Void _ignoreError) {
return "SUCCESS";
public String railways(Void _ignoreName, String error) {
return "FAILURE";
public void workingWithEither() {
assertThat(railways("Any Name", null), is(equalTo("SUCCESS")));
assertThat(railways(null, "Any Error"), is(equalTo("FAILURE")));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.