Consistent formatting
This commit is contained in:
@@ -51,7 +51,7 @@ public class Matchers {
|
||||
@Override
|
||||
public boolean matches(Object item) {
|
||||
Throwable cause = null;
|
||||
if(item != null && item instanceof Throwable) {
|
||||
if (item != null && item instanceof Throwable) {
|
||||
cause = ((Throwable)item).getCause();
|
||||
}
|
||||
return matcher.matches(cause);
|
||||
|
||||
@@ -93,7 +93,8 @@ public enum TestGroup {
|
||||
for (String group : value.split(",")) {
|
||||
try {
|
||||
groups.add(valueOf(group.trim().toUpperCase()));
|
||||
} catch (IllegalArgumentException e) {
|
||||
}
|
||||
catch (IllegalArgumentException ex) {
|
||||
throw new IllegalArgumentException(format(
|
||||
"Unable to find test group '%s' when parsing testGroups value: '%s'. " +
|
||||
"Available groups include: [%s]", group.trim(), value,
|
||||
|
||||
Reference in New Issue
Block a user