Skip to content

Commit 44c6742

Browse files
committed
Polish TestableAnnotationTests
See #2391
1 parent a962d5a commit 44c6742

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

junit-jupiter-engine/src/test/java/org/junit/jupiter/engine/TestableAnnotationTests.java renamed to platform-tests/src/test/java/org/junit/platform/commons/annotation/TestableAnnotationTests.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,22 @@
88
* https://www.eclipse.org/legal/epl-v20.html
99
*/
1010

11-
package org.junit.jupiter.engine;
11+
package org.junit.platform.commons.annotation;
1212

1313
import static org.junit.jupiter.api.Assertions.assertNotNull;
1414

1515
import org.junit.jupiter.api.Test;
16-
import org.junit.platform.commons.annotation.Testable;
1716

1817
/**
19-
* Integration test that verifies that the testable annotation may be
20-
* attached to any element type.
18+
* Integration tests that indirectly verify that the {@link Testable @Testable}
19+
* annotation may be declared on any element type.
2120
*
22-
* @since 5.7
21+
* @since 1.7
2322
*/
2423
class TestableAnnotationTests {
2524

2625
@Test
27-
void testAndRepeatedTest() {
26+
void testMethod() {
2827
assertNotNull(new TestableEverywhere().toString());
2928
}
3029

@@ -41,6 +40,7 @@ static class TestableEverywhere {
4140
@Testable
4241
void test(@Testable int parameter) {
4342
@Testable
43+
@SuppressWarnings("unused")
4444
var var = "var";
4545
}
4646
}

0 commit comments

Comments
 (0)