Skip to content

Commit 159256c

Browse files
author
David Hasani
committed
fix test
1 parent f63d4b3 commit 159256c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ class CodeTransformChatTest {
2727
}
2828

2929
@Test
30-
fun `test that transform result chat item includes view summary button and view diff button with correct label when job fully succeeded with 1 patch file`() {
30+
fun `test that transform result chat item includes view summary button and view diff button with correct label when job fully succeeded`() {
3131
val result = CodeModernizerJobCompletedResult.JobCompletedSuccessfully(JobId("dummy-job-id-123"))
3232
val chatItem = buildTransformResultChatContent(result)
33-
assertThat(chatItem.message).isEqualTo(message("codemodernizer.chat.message.result.success.multiple_diffs"))
33+
assertThat(chatItem.message).isEqualTo(message("codemodernizer.chat.message.result.success"))
3434
assertThat(chatItem.buttons)
3535
.hasSize(2)
3636
.satisfiesKt { buttons ->
@@ -41,7 +41,7 @@ class CodeTransformChatTest {
4141
}
4242

4343
@Test
44-
fun `test that transform result chat item includes view summary button and view diff button with correct label when job partially succeeded with 1 patch file`() {
44+
fun `test that transform result chat item includes view summary button and view diff button with correct label when job partially succeeded`() {
4545
val result = CodeModernizerJobCompletedResult.JobPartiallySucceeded(JobId("dummy-job-id-123"))
4646
val chatItem = buildTransformResultChatContent(result)
4747
assertThat(chatItem.message).isEqualTo(message("codemodernizer.chat.message.result.partially_success"))

plugins/core/resources/resources/software/aws/toolkits/resources/MessagesBundle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,6 @@ codemodernizer.chat.message.result.fail_initial_build_no_build_log=I am having t
678678
codemodernizer.chat.message.result.fail_with_known_reason=Sorry, I couldn''t complete the transformation. {0}
679679
codemodernizer.chat.message.result.partially_success=I transformed part of your code. You can review the diff to see my proposed changes and accept or reject them. The transformation summary has details about the files I updated and the errors that prevented a complete transformation.
680680
codemodernizer.chat.message.result.success=I successfully completed your transformation. You can review the diff to see my proposed changes and accept or reject them. The transformation summary has details about the changes I'm proposing.
681-
codemodernizer.chat.message.result.success.multiple_diffs=I successfully completed your transformation. You will be able to accept changes from one diff at a time. If you reject changes in one diff, you will not be able to view or accept changes in the other diffs. The transformation summary has details about the changes I'm proposing.
682681
codemodernizer.chat.message.result.zip_too_large=Sorry, your project size exceeds the Amazon Q Code Transformation upload limit of 2GB.
683682
codemodernizer.chat.message.resume_ongoing=I'm still transforming your code. It can take 10 to 30 minutes to upgrade your code, depending on the size of your module. To monitor progress, go to the Transformation Hub.
684683
codemodernizer.chat.message.skip_tests=I will build your project using `mvn clean test` by default. If you would like me to build your project without running unit tests, I will use `mvn clean test-compile`.

0 commit comments

Comments
 (0)