diff --git a/structurizr-inspection/src/main/java/com/structurizr/inspection/view/GeneratedKeyInspection.java b/structurizr-inspection/src/main/java/com/structurizr/inspection/view/GeneratedKeyInspection.java index 46be3055..9ea19512 100644 --- a/structurizr-inspection/src/main/java/com/structurizr/inspection/view/GeneratedKeyInspection.java +++ b/structurizr-inspection/src/main/java/com/structurizr/inspection/view/GeneratedKeyInspection.java @@ -14,7 +14,7 @@ public GeneratedKeyInspection(Inspector inspector) { @Override protected Violation inspect(View view) { if (view.isGeneratedKey()) { - return violation("The view with key \"" + view.getKey() + "\" has an automatically generated view key, which is not guaranteed to be stable over time."); + return violation("The view with key \"" + view.getKey() + "\" has an automatically generated view key and this is not guaranteed to be stable over time."); } return noViolation(); diff --git a/structurizr-inspection/src/main/java/com/structurizr/inspection/view/ManualLayoutInspection.java b/structurizr-inspection/src/main/java/com/structurizr/inspection/view/ManualLayoutInspection.java index 38f9065f..69bbe4c0 100644 --- a/structurizr-inspection/src/main/java/com/structurizr/inspection/view/ManualLayoutInspection.java +++ b/structurizr-inspection/src/main/java/com/structurizr/inspection/view/ManualLayoutInspection.java @@ -13,7 +13,7 @@ public ManualLayoutInspection(Inspector inspector) { @Override protected Violation inspect(ModelView view) { if (view.isGeneratedKey() && view.getAutomaticLayout() == null) { - return violation("The view with key \"" + view.getKey() + "\" has an automatically generated view key, which may cause manual layout information to be lost in the future."); + return violation("The view with key \"" + view.getKey() + "\" has an automatically generated view key and this may cause manual layout information to be lost in the future."); } return noViolation(); diff --git a/structurizr-inspection/src/test/java/com/structurizr/inspection/view/GeneratedKeyInspectionTests.java b/structurizr-inspection/src/test/java/com/structurizr/inspection/view/GeneratedKeyInspectionTests.java index 861bb7c3..82833a1f 100644 --- a/structurizr-inspection/src/test/java/com/structurizr/inspection/view/GeneratedKeyInspectionTests.java +++ b/structurizr-inspection/src/test/java/com/structurizr/inspection/view/GeneratedKeyInspectionTests.java @@ -21,7 +21,7 @@ public void run_GeneratedKey() { Violation violation = new GeneratedKeyInspection(new DefaultInspector(workspace)).run(view); Assertions.assertEquals(Severity.ERROR, violation.getSeverity()); assertEquals("views.view.key", violation.getType()); - assertEquals("The view with key \"SystemLandscape-001\" has an automatically generated view key, which is not guaranteed to be stable over time.", violation.getMessage()); + assertEquals("The view with key \"SystemLandscape-001\" has an automatically generated view key and this is not guaranteed to be stable over time.", violation.getMessage()); } @Test diff --git a/structurizr-inspection/src/test/java/com/structurizr/inspection/view/ManualLayoutInspectionTests.java b/structurizr-inspection/src/test/java/com/structurizr/inspection/view/ManualLayoutInspectionTests.java index 83266f87..95e6cacb 100644 --- a/structurizr-inspection/src/test/java/com/structurizr/inspection/view/ManualLayoutInspectionTests.java +++ b/structurizr-inspection/src/test/java/com/structurizr/inspection/view/ManualLayoutInspectionTests.java @@ -21,7 +21,7 @@ public void run_GeneratedKeyAndManualLayout() { Violation violation = new ManualLayoutInspection(new DefaultInspector(workspace)).run(view); Assertions.assertEquals(Severity.ERROR, violation.getSeverity()); assertEquals("views.view.layout", violation.getType()); - assertEquals("The view with key \"SystemLandscape-001\" has an automatically generated view key, which may cause manual layout information to be lost in the future.", violation.getMessage()); + assertEquals("The view with key \"SystemLandscape-001\" has an automatically generated view key and this may cause manual layout information to be lost in the future.", violation.getMessage()); } @Test