Skip to content

Commit f208c59

Browse files
committed
fix test annotation compilation errors
1 parent ea63804 commit f208c59

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-4
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
package software.aws.toolkits.jetbrains.services.lambda.completion
5+
6+
import com.jetbrains.rider.test.annotations.TestEnvironment
7+
8+
@TestEnvironment(solution = "SamHelloWorldApp")
9+
annotation class TestSamHelloWorldApp
10+
11+
@TestEnvironment(solution = "SamMultipleHandlersApp")
12+
annotation class TestSamMultipleHandlersApp
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
package software.aws.toolkits.jetbrains.services.lambda.completion
5+
6+
import com.jetbrains.rider.test.annotations.Solution
7+
import com.jetbrains.rider.test.annotations.TestEnvironment
8+
9+
@TestEnvironment
10+
@Solution("SamHelloWorldApp")
11+
annotation class TestSamHelloWorldApp
12+
13+
@TestEnvironment
14+
@Solution("SamMultipleHandlersApp")
15+
annotation class TestSamMultipleHandlersApp

plugins/toolkit/jetbrains-rider/tst/software/aws/toolkits/jetbrains/services/lambda/completion/DotNetHandlerCompletionTest.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ class DotNetHandlerCompletionTest : BaseTestWithSolution() {
3030
}
3131

3232
@Test(description = "Check a single handler is shown in lookup when one is defined in a project.")
33-
@TestEnvironment
34-
@Solution("SamHelloWorldApp")
33+
@TestSamHelloWorldApp
3534
fun testDetermineHandlersSingleHandler() {
3635
val handlers = DotNetHandlerCompletion().getHandlersFromBackend(project)
3736

@@ -43,8 +42,7 @@ class DotNetHandlerCompletionTest : BaseTestWithSolution() {
4342
// TODO this test only works on 2019.2. Which we don't support anymore. Fix the test
4443
// TODO: This test is failing due to handlers detection logic. I assume it need to be fixed if test is correct.
4544
@Test(enabled = false, description = "Check all handlers are show in completion lookup when multiple handlers are defined in a project.")
46-
@TestEnvironment
47-
@Solution("SamMultipleHandlersApp")
45+
@TestSamMultipleHandlersApp
4846
fun testDetermineHandlersMultipleHandlers() {
4947
val handlers = DotNetHandlerCompletion().getHandlersFromBackend(project).sortedBy { it.handler }
5048

0 commit comments

Comments
 (0)