GH-104 - Polish log output for test execution.

Also added ApplicationModules.toString().
This commit is contained in:
Oliver Drotbohm
2023-01-05 10:21:07 +01:00
parent d9aedb8ebf
commit 30203ecca8
4 changed files with 49 additions and 40 deletions

View File

@@ -304,7 +304,7 @@ public class ApplicationModule {
public String toString(@Nullable ApplicationModules modules) {
var builder = new StringBuilder("## ").append(getDisplayName()).append(" ##\n");
var builder = new StringBuilder("# ").append(getDisplayName()).append("\n");
builder.append("> Logical name: ").append(getName()).append('\n');
builder.append("> Base package: ").append(basePackage.getName()).append('\n');

View File

@@ -412,6 +412,15 @@ public class ApplicationModules implements Iterable<ApplicationModule> {
return orderedNames.stream().map(this::getRequiredModule).iterator();
}
/*
* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return this.stream().map(ApplicationModule::toString).collect(Collectors.joining("\n"));
}
private FailureReport assertNoCyclesFor(JavaPackage rootPackage) {
EvaluationResult result = SlicesRuleDefinition.slices() //