Skip to content

Commit 1071fbb

Browse files
committed
move TestOnly annotation to file level
1 parent 6ab9603 commit 1071fbb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/core/jetbrains-community/tstFixtures/com/intellij/testFramework/junit5/impl/TestDisposableExtension.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@file:Suppress("all")
2+
@file:TestOnly
23
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
34
package com.intellij.testFramework.junit5.impl
45

@@ -18,7 +19,6 @@ import org.junit.platform.commons.util.ReflectionUtils
1819
* the binary method signature change of [ReflectionUtils.makeAccessible] caused by JUnit 5.11.0 in
1920
* https://github.com/junit-team/junit5/commit/abb5ed16be3a9ce552f4a45c11264ded608ae9da
2021
*/
21-
@TestOnly
2222
internal class TestDisposableExtension :
2323
BeforeEachCallback,
2424
AfterEachCallback,

plugins/core/jetbrains-community/tstFixtures/software/aws/toolkits/jetbrains/utils/extensions/SsoLoginExtension.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@file:TestOnly
12
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
23
// SPDX-License-Identifier: Apache-2.0
34

@@ -42,7 +43,6 @@ class SsoLoginExtension : DisposableRule(), BeforeEachCallback, AfterEachCallbac
4243
}
4344
}
4445

45-
@TestOnly
4646
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.CLASS)
4747
@ExtendWith(SsoLoginExtension::class)
4848
annotation class SsoLogin(val secretName: String)

0 commit comments

Comments
 (0)