This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/causeway.git


The following commit(s) were added to refs/heads/master by this push:
     new 4f67e6e8c0 Bump structurizr-core from 1.19.0 to 1.20.1 (2)
4f67e6e8c0 is described below

commit 4f67e6e8c03288ffb5afaaeed3e04fc4d57b5d8b
Author: Andi Huber <[email protected]>
AuthorDate: Tue Feb 21 06:06:45 2023 +0100

    Bump structurizr-core from 1.19.0 to 1.20.1 (2)
    
    - just cleaning up tests
---
 .../org/apache/causeway/tooling/c4/test/C4Test.java   | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git 
a/tooling/c4modeling/src/test/java/org/apache/causeway/tooling/c4/test/C4Test.java
 
b/tooling/c4modeling/src/test/java/org/apache/causeway/tooling/c4/test/C4Test.java
index 691a866f52..96d3c91f5d 100644
--- 
a/tooling/c4modeling/src/test/java/org/apache/causeway/tooling/c4/test/C4Test.java
+++ 
b/tooling/c4modeling/src/test/java/org/apache/causeway/tooling/c4/test/C4Test.java
@@ -83,16 +83,13 @@ class C4Test {
         val sb = new StringBuffer();
         val plantUMLExporter = new StructurizrPlantUMLExporter();
         
plantUMLExporter.export(workspace).forEach(diagram->sb.append(diagram.getDefinition()));
+        val plantUmlSource = sb.toString();
 
-        System.err.println("---");
-        System.err.printf("%s%n", sb.toString());
-        System.err.println("---");
+        dump(plantUmlSource);
 
         _Text.assertTextEquals(
                 _Text.readLinesFromResource(this.getClass(), 
"baeldung-example-v1.puml", StandardCharsets.UTF_8),
-                sb.toString());
-
-
+                plantUmlSource);
     }
 
     /**
@@ -123,7 +120,7 @@ class C4Test {
 
         val plantUmlSource = c4.toPlantUML(contextView);
 
-        System.out.println(plantUmlSource); //debug
+        dump(plantUmlSource);
 
         _Text.assertTextEquals(
                 _Text.readLinesFromResource(this.getClass(), 
"baeldung-example-v2.puml", StandardCharsets.UTF_8),
@@ -131,5 +128,13 @@ class C4Test {
 
     }
 
+    // -- HELPER
+
+    // debug
+    private void dump(final String plantUmlSource){
+        // System.err.println("---");
+        // System.out.println(plantUmlSource);
+        // System.err.println("---");
+    }
 
 }

Reply via email to