Skip to content

Commit

Permalink
Use latest SLCORE
Browse files Browse the repository at this point in the history
  • Loading branch information
sophio-japharidze-sonarsource committed Nov 21, 2023
1 parent 9e80a58 commit 5aad14c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<properties>
<jdk.min.version>17</jdk.min.version>
<sonarlint.core.version>9.5.0.76145</sonarlint.core.version>
<sonarlint.core.version>9.5.0.76302</sonarlint.core.version>
<!-- Version used by Xodus -->
<kotlin.version>1.6.10</kotlin.version>
<!-- analyzers used for tests -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ void shouldForwardServerSentEvent() {
void shouldForwardOpenIssueRequest() {
var textRangeDto = new TextRangeDto(1, 2, 3, 4);
var showIssueParams = new ShowIssueParams(textRangeDto, "connectionId", "rule:S1234",
"issueKey", FILE_PYTHON, "this is wrong", "29.09.2023", "print('ddd')", false, List.of());
"issueKey", FILE_PYTHON, "branch", "1234", "this is wrong", "29.09.2023", "print('ddd')", false, List.of());
var fileUri = fileInAWorkspaceFolderPath.toUri();

when(bindingManager.serverPathToFileUri(showIssueParams.getServerRelativeFilePath()))
Expand All @@ -406,7 +406,7 @@ void shouldForwardOpenIssueRequest() {
void shouldNotForwardOpenIssueRequestWhenBindingDoesNotExist() {
var textRangeDto = new TextRangeDto(1, 2, 3, 4);
var showIssueParams = new ShowIssueParams(textRangeDto, "connectionId", "rule:S1234",
"issueKey", FILE_PYTHON, "this is wrong", "29.09.2023", "print('ddd')", false, List.of());
"issueKey", FILE_PYTHON, "bb", null, "this is wrong", "29.09.2023", "print('ddd')", false, List.of());
var fileUri = fileInAWorkspaceFolderPath.toUri();

when(bindingManager.serverPathToFileUri(showIssueParams.getServerRelativeFilePath()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void shouldBuildCommandParamsFromIssue() {
void shouldBuildCommandParamsFromShowIssueParams() {
var textRangeDto = new TextRangeDto(1, 0, 1, 13);
var showIssueParams = new ShowIssueParams(textRangeDto, "connectionId", "rule:S1234",
"issueKey", "/src/java/main/myFile.py", "this is wrong",
"issueKey", "/src/java/main/myFile.py", "branch", "pr", "this is wrong",
"29.09.2023", "print('1234')", false, List.of());

when(projectBindingManager.serverPathToFileUri(showIssueParams.getServerRelativeFilePath())).thenReturn(Optional.of(fileInAWorkspaceFolderPath.toUri()));
Expand All @@ -144,7 +144,7 @@ void shouldBuildCommandParamsFromShowIssueParams() {
void shouldBuildCommandParamsFromShowIssueParamsForFileLevelIssue() {
var textRangeDto = new TextRangeDto(0, 0, 0, 0);
var showIssueParams = new ShowIssueParams(textRangeDto, "connectionId", "rule:S1234",
"issueKey", "/src/java/main/myFile.py", "this is wrong",
"issueKey", "/src/java/main/myFile.py", "branch", null, "this is wrong",
"29.09.2023", """
print('1234')
print('aa')
Expand All @@ -161,7 +161,7 @@ void shouldBuildCommandParamsFromShowIssueParamsForFileLevelIssue() {
void shouldBuildCommandParamsFromShowIssueParamsForInvalidTextRange() {
var textRangeDto = new TextRangeDto(-1, 0, -2, 0);
var showIssueParams = new ShowIssueParams(textRangeDto, "connectionId", "rule:S1234",
"issueKey", "/src/java/main/myFile.py", "this is wrong",
"issueKey", "/src/java/main/myFile.py", "bb", "1234", "this is wrong",
"29.09.2023", "print('1234')", false, List.of());

when(projectBindingManager.serverPathToFileUri(showIssueParams.getServerRelativeFilePath())).thenReturn(Optional.of(fileInAWorkspaceFolderPath.toUri()));
Expand All @@ -181,7 +181,7 @@ void shouldBuildCommandParamsFromShowIssueParamsWithFlows() {
var flow = new FlowDto(List.of(location1, location2));

var showIssueParams = new ShowIssueParams(textRangeDto1, "connectionId", "rule:S1234",
"issueKey", "/src/java/main/myFile.py", "this is wrong", "29.09.2023",
"issueKey", "/src/java/main/myFile.py", "main", "", "this is wrong", "29.09.2023",
"print('1234')", false, List.of(flow));

when(projectBindingManager.serverPathToFileUri(showIssueParams.getServerRelativeFilePath())).thenReturn(Optional.of(fileInAWorkspaceFolderPath.toUri()));
Expand Down

0 comments on commit 5aad14c

Please sign in to comment.