Skip to content

Commit

Permalink
Merge pull request #984 from hazendaz/tests
Browse files Browse the repository at this point in the history
More test cleanup
  • Loading branch information
hazendaz authored Aug 11, 2024
2 parents 0f9528f + b625cae commit fb4d3db
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ public Object invoke(final Object proxy, final Method method, final Object[] arg
thread.join();
if (exceptionSet.isEmpty()) {
return retValSet.iterator().next();
} else {
throw exceptionSet.iterator().next();
}
throw exceptionSet.iterator().next();
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,17 @@ private List<Object> getFoos() {
return Arrays.asList(new Foo("foo1"), new Foo("foo2"), new Foo("foo3"));
}

// Note: Do not cleanup this 'foo' class
private static class Foo {
private final String name;

Foo(String name) {
this.name = name;
}

public String getName() {
return this.name;
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,17 @@ private Chunk<Foo> getFoos() {
return Chunk.of(new Foo("foo1"), new Foo("foo2"), new Foo("foo3"));
}

// Note: Do not cleanup this 'foo' class
private static class Foo {
private final String name;

Foo(String name) {
this.name = name;
}

public String getName() {
return this.name;
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void saveWithFailure(User user) {

@Override
public boolean checkUserExists(int id) {
if ((userMapperMaster.select(id) != null) || (userMapperSlave.select(id) != null)) {
if (userMapperMaster.select(id) != null || userMapperSlave.select(id) != null) {
return true;
}
return false;
Expand Down

0 comments on commit fb4d3db

Please sign in to comment.