diff --git a/spring-modulith-junit/src/main/java/org/springframework/modulith/junit/TestExecutionCondition.java b/spring-modulith-junit/src/main/java/org/springframework/modulith/junit/TestExecutionCondition.java index be4be0a8..8861f9b0 100644 --- a/spring-modulith-junit/src/main/java/org/springframework/modulith/junit/TestExecutionCondition.java +++ b/spring-modulith-junit/src/main/java/org/springframework/modulith/junit/TestExecutionCondition.java @@ -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))); }