Skip to content

Commit 31248f8

Browse files
committed
test
1 parent f01eabc commit 31248f8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

plugins/amazonq/codewhisperer/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/codewhisperer/codescan/CodeWhispererCodeScanTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class CodeWhispererCodeScanTest : CodeWhispererCodeScanTestBase(PythonCodeInsigh
160160
fakeListCodeScanFindingsResponse.codeScanFindings(),
161161
getFakeRecommendationsOnNonExistentFile()
162162
)
163-
val res = codeScanSessionSpy.mapToCodeScanIssues(recommendations, project)
163+
val res = codeScanSessionSpy.mapToCodeScanIssues(recommendations, project, "jobId")
164164
assertThat(res).hasSize(2)
165165
}
166166

@@ -169,7 +169,7 @@ class CodeWhispererCodeScanTest : CodeWhispererCodeScanTestBase(PythonCodeInsigh
169169
val recommendations = listOf(
170170
fakeListCodeScanFindingsOutOfBoundsIndexResponse.codeScanFindings(),
171171
)
172-
val res = codeScanSessionSpy.mapToCodeScanIssues(recommendations, project)
172+
val res = codeScanSessionSpy.mapToCodeScanIssues(recommendations, project, "jobId")
173173
assertThat(res).hasSize(1)
174174
}
175175

plugins/amazonq/codewhisperer/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/codewhisperer/codescan/CodeWhispererCodeScanTestBase.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,8 @@ open class CodeWhispererCodeScanTestBase(projectRule: CodeInsightTestFixtureRule
444444
number = 11,
445445
content = "processData(unsecureCode)"
446446
)
447-
)
447+
),
448+
scanJobId = "scanJobId"
448449
)
449450

450451
// You might need these data classes depending on your implementation

0 commit comments

Comments
 (0)