Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Nov 9, 2015
1 parent db44cc0 commit 0e6008f
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -66,9 +66,9 @@ public Class<?> getTestClass() {

if (conditional != null) {
Class<? extends Condition>[] classes = conditional.value();
for (Class<? extends Condition> conditionalClass : classes) {
for (Class<? extends Condition> conditionClass : classes) {
try {
Condition condition = ReflectionUtils.newInstance(conditionalClass);
Condition condition = ReflectionUtils.newInstance(conditionClass);

if (!condition.matches(conditionContext)) {
// We found a failing condition, so there is no need to continue.
Expand All @@ -77,7 +77,7 @@ public Class<?> getTestClass() {
}
catch (Exception e) {
throw new IllegalStateException(
String.format("Failed to evaluate condition [%s]", conditionalClass.getName()), e);
String.format("Failed to evaluate condition [%s]", conditionClass.getName()), e);
}
}
}
Expand Down

0 comments on commit 0e6008f

Please sign in to comment.