diff --git a/tdrules-client-oa/src/test/java/test4giis/tdrules/client/oa/Base.java b/tdrules-client-oa/src/test/java/test4giis/tdrules/client/oa/Base.java index 3434bdf..28f17f8 100644 --- a/tdrules-client-oa/src/test/java/test4giis/tdrules/client/oa/Base.java +++ b/tdrules-client-oa/src/test/java/test4giis/tdrules/client/oa/Base.java @@ -69,7 +69,7 @@ protected void assertModelMermaid(String fileName, String mermaidModel) throws I protected void assertModelFile(String fileName, String actualFile) throws IOException { // saves actual in target, reads expected file from resources and performs the // assert - fileWrite(TEST_PATH_OUTPUT, fileName, actualFile.toString()); + fileWrite(TEST_PATH_OUTPUT, fileName, actualFile); actualFile = actualFile.replace("\r", ""); String expected = fileRead(TEST_PATH_BENCHMARK, fileName).replace("\r", ""); new VisualAssert().setFramework(Framework.JUNIT4).setBrightColors(true) diff --git a/tdrules-store-rdb/src/test/java/test4giis/tdrules/store/rdb/TestSqlserverSchemaMetadata.java b/tdrules-store-rdb/src/test/java/test4giis/tdrules/store/rdb/TestSqlserverSchemaMetadata.java index c0b4e81..d3fdf96 100644 --- a/tdrules-store-rdb/src/test/java/test4giis/tdrules/store/rdb/TestSqlserverSchemaMetadata.java +++ b/tdrules-store-rdb/src/test/java/test4giis/tdrules/store/rdb/TestSqlserverSchemaMetadata.java @@ -48,9 +48,11 @@ protected void createViewXXL() throws SQLException { String createViewSql = "select tinteger,tint4,tcharacter from stypes1"; String addView = " \nunion all " + createViewSql; int numRepeats = 10000 / addView.length(); + StringBuilder sb = new StringBuilder(); + sb.append(createViewSql); for (int i = 0; i < numRepeats; i++) - createViewSql += addView; - execute(dbt, createViewMain + createViewSql); + sb.append(addView); + execute(dbt, createViewMain + sb.toString()); } protected void createTablesAndViews() throws SQLException {