From 44c6742d3d9145ddcd4c09681aae262d44eca193 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Fri, 11 Sep 2020 13:53:16 +0200 Subject: [PATCH] Polish TestableAnnotationTests See #2391 --- .../commons/annotation}/TestableAnnotationTests.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename {junit-jupiter-engine/src/test/java/org/junit/jupiter/engine => platform-tests/src/test/java/org/junit/platform/commons/annotation}/TestableAnnotationTests.java (75%) diff --git a/junit-jupiter-engine/src/test/java/org/junit/jupiter/engine/TestableAnnotationTests.java b/platform-tests/src/test/java/org/junit/platform/commons/annotation/TestableAnnotationTests.java similarity index 75% rename from junit-jupiter-engine/src/test/java/org/junit/jupiter/engine/TestableAnnotationTests.java rename to platform-tests/src/test/java/org/junit/platform/commons/annotation/TestableAnnotationTests.java index 7d21c15f4e2c..ec2db2b8e235 100644 --- a/junit-jupiter-engine/src/test/java/org/junit/jupiter/engine/TestableAnnotationTests.java +++ b/platform-tests/src/test/java/org/junit/platform/commons/annotation/TestableAnnotationTests.java @@ -8,23 +8,22 @@ * https://www.eclipse.org/legal/epl-v20.html */ -package org.junit.jupiter.engine; +package org.junit.platform.commons.annotation; import static org.junit.jupiter.api.Assertions.assertNotNull; import org.junit.jupiter.api.Test; -import org.junit.platform.commons.annotation.Testable; /** - * Integration test that verifies that the testable annotation may be - * attached to any element type. + * Integration tests that indirectly verify that the {@link Testable @Testable} + * annotation may be declared on any element type. * - * @since 5.7 + * @since 1.7 */ class TestableAnnotationTests { @Test - void testAndRepeatedTest() { + void testMethod() { assertNotNull(new TestableEverywhere().toString()); } @@ -41,6 +40,7 @@ static class TestableEverywhere { @Testable void test(@Testable int parameter) { @Testable + @SuppressWarnings("unused") var var = "var"; } }