Skip to content

Commit

Permalink
Polish TestableAnnotationTests
Browse files Browse the repository at this point in the history
See #2391
  • Loading branch information
sbrannen committed Sep 11, 2020
1 parent a962d5a commit 44c6742
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand All @@ -41,6 +40,7 @@ static class TestableEverywhere {
@Testable
void test(@Testable int parameter) {
@Testable
@SuppressWarnings("unused")
var var = "var";
}
}
Expand Down

0 comments on commit 44c6742

Please sign in to comment.