Skip to content

Commit

Permalink
Adjust Sonar error message #3307
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz-suckow committed Jun 7, 2023
1 parent b9e8eb2 commit 2720f6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class SonarImporterMain(

override fun call(): Void? {
if (url == "" || projectId == "") {
System.err.println("Input invalid file for SonarImporter, stopping execution...")
System.err.println("Input invalid Url or ProjectID for SonarImporter, stopping execution...")
return null
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class SonarImporterMainTest {
CommandLine(SonarImporterMain()).execute(*arrayOf("", "dummyVal"))
System.setErr(originalErr)

Assertions.assertTrue(errContent.toString().contains("Input invalid file for SonarImporter, stopping execution"))
Assertions.assertTrue(errContent.toString().contains("Input invalid Url or ProjectID for SonarImporter, stopping execution"))
}

@Test
Expand All @@ -174,7 +174,7 @@ class SonarImporterMainTest {
CommandLine(SonarImporterMain()).execute(*arrayOf("dummyVal", ""))
System.setErr(originalErr)

Assertions.assertTrue(errContent.toString().contains("Input invalid file for SonarImporter, stopping execution"))
Assertions.assertTrue(errContent.toString().contains("Input invalid Url or ProjectID for SonarImporter, stopping execution"))
}

@Test
Expand Down

0 comments on commit 2720f6b

Please sign in to comment.