Skip to content

Commit ff8538b

Browse files
author
David Hasani
committed
fix test
1 parent 42b6483 commit ff8538b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/amazonq/codetransform/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/codemodernizer/CodeWhispererCodeModernizerTestBase.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ open class CodeWhispererCodeModernizerTestBase(
268268
val summaryFileMock = Mockito.mock(File::class.java)
269269
val logFileMock = Mockito.mock(File::class.java)
270270
doReturn("dummy/path").whenever(virtualFileMock).path
271-
testSessionContextSpy = spy(CodeModernizerSessionContext(project, virtualFileMock, JavaSdkVersion.JDK_1_8, JavaSdkVersion.JDK_11))
271+
testSessionContextSpy = spy(CodeModernizerSessionContext(project, virtualFileMock, JavaSdkVersion.JDK_1_8, JavaSdkVersion.JDK_11, "test"))
272272
testSessionSpy = spy(CodeModernizerSession(testSessionContextSpy, 0, 0))
273273
doNothing().whenever(testSessionSpy).deleteUploadArtifact(any())
274274
doReturn(Job()).whenever(codeModernizerManagerSpy).launchModernizationJob(any(), any())
@@ -305,7 +305,7 @@ open class CodeWhispererCodeModernizerTestBase(
305305
doNothing().whenever(codeModernizerManagerSpy).notifyTransformationStartStopping()
306306
doNothing().whenever(codeModernizerManagerSpy).notifyTransformationFailedToStop()
307307
doReturn(Path("/test/pom.xml")).whenever(emptyPomFileSpy).toNioPath()
308-
validJDK8CustomerSelection = CustomerSelection(emptyPomFileSpy, JavaSdkVersion.JDK_1_8, JavaSdkVersion.JDK_17)
308+
validJDK8CustomerSelection = CustomerSelection(emptyPomFileSpy, JavaSdkVersion.JDK_1_8, JavaSdkVersion.JDK_17, "test")
309309
}
310310

311311
fun setupConnection(authState: BearerTokenAuthState) {

0 commit comments

Comments
 (0)