GH-104 - Polish log output for test execution.
Also added ApplicationModules.toString().
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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() //
|
||||
|
||||
Reference in New Issue
Block a user