Skip to content

Commit

Permalink
Fix new sonarcloud smells (#319)
Browse files Browse the repository at this point in the history
* Update Base.java

* Update TestSqlserverSchemaMetadata.java
  • Loading branch information
giis-qabot authored Dec 8, 2024
1 parent fb694b7 commit 8531288
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8531288

Please sign in to comment.