Skip to content

Commit

Permalink
GH-872 - Move JUnit integration to ApplicationModuleIdentifiers.
Browse files Browse the repository at this point in the history
  • Loading branch information
odrotbohm committed Oct 13, 2024
1 parent 3af2506 commit d1085fd
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,18 @@ ConditionEvaluationResult evaluate(ConditionContext context) {
for (String changedClass : changedClasses) {

if (it.contains(changedClass)) {
return enabled("Changes detected in module %s, executing test.".formatted(it.getName()));
return enabled("Changes detected in module %s, executing test.".formatted(it.getIdentifier()));
}

var dependency = dependencies.getModuleByType(changedClass);

if (dependency != null) {
return enabled("Changes detected in dependent module %s, executing test.".formatted(dependency.getName()));
return enabled(
"Changes detected in dependent module %s, executing test.".formatted(dependency.getIdentifier()));
}
}

return disabled("Test residing in module %s not affected by changes!".formatted(it.getName()));
return disabled("Test residing in module %s not affected by changes!".formatted(it.getIdentifier()));

}).orElseGet(() -> enabled("Test in package %s does not reside in any module!".formatted(packageName)));
}
Expand Down

0 comments on commit d1085fd

Please sign in to comment.