File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
spring-modulith-junit/src/main/java/org/springframework/modulith/junit Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -91,17 +91,18 @@ ConditionEvaluationResult evaluate(ConditionContext context) {
9191 for (String changedClass : changedClasses ) {
9292
9393 if (it .contains (changedClass )) {
94- return enabled ("Changes detected in module %s, executing test." .formatted (it .getName ()));
94+ return enabled ("Changes detected in module %s, executing test." .formatted (it .getIdentifier ()));
9595 }
9696
9797 var dependency = dependencies .getModuleByType (changedClass );
9898
9999 if (dependency != null ) {
100- return enabled ("Changes detected in dependent module %s, executing test." .formatted (dependency .getName ()));
100+ return enabled (
101+ "Changes detected in dependent module %s, executing test." .formatted (dependency .getIdentifier ()));
101102 }
102103 }
103104
104- return disabled ("Test residing in module %s not affected by changes!" .formatted (it .getName ()));
105+ return disabled ("Test residing in module %s not affected by changes!" .formatted (it .getIdentifier ()));
105106
106107 }).orElseGet (() -> enabled ("Test in package %s does not reside in any module!" .formatted (packageName )));
107108 }
You can’t perform that action at this time.
0 commit comments