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) {
91
91
for (String changedClass : changedClasses ) {
92
92
93
93
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 ()));
95
95
}
96
96
97
97
var dependency = dependencies .getModuleByType (changedClass );
98
98
99
99
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 ()));
101
102
}
102
103
}
103
104
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 ()));
105
106
106
107
}).orElseGet (() -> enabled ("Test in package %s does not reside in any module!" .formatted (packageName )));
107
108
}
You can’t perform that action at this time.
0 commit comments