http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/4b8c1a47/surefire-providers/surefire-junit5/src/test/java/org/junit/platform/surefire/provider/TestPlanScannerFilterTests.java
----------------------------------------------------------------------
diff --git
a/surefire-providers/surefire-junit5/src/test/java/org/junit/platform/surefire/provider/TestPlanScannerFilterTests.java
b/surefire-providers/surefire-junit5/src/test/java/org/junit/platform/surefire/provider/TestPlanScannerFilterTests.java
deleted file mode 100644
index f9e9ca4..0000000
---
a/surefire-providers/surefire-junit5/src/test/java/org/junit/platform/surefire/provider/TestPlanScannerFilterTests.java
+++ /dev/null
@@ -1,190 +0,0 @@
-package org.junit.platform.surefire.provider;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import static java.util.Collections.emptyList;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-
-import java.util.List;
-import java.util.stream.Stream;
-
-import org.junit.jupiter.api.DynamicTest;
-import org.junit.jupiter.api.Nested;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.TestFactory;
-import org.junit.platform.engine.Filter;
-import org.junit.platform.launcher.core.LauncherFactory;
-
-/**
- * Unit tests for {@link TestPlanScannerFilter}.
- *
- * @since 1.0
- */
-public class TestPlanScannerFilterTests
-{
-
- @Test
- void emptyClassAccepted()
- {
- assertTrue( newFilter().accept( EmptyClass.class ), "accepts empty
class because it is a container" );
- }
-
- @Test
- void classWithNoTestMethodsIsAccepted()
- {
- assertTrue( newFilter().accept( ClassWithMethods.class ),
- "accepts class with no @Test methods because it is a container" );
- }
-
- @Test
- void classWithTestMethodsIsAccepted()
- {
- assertTrue( newFilter().accept( ClassWithTestMethods.class ) );
- }
-
- @Test
- void classWithNestedTestClassIsAccepted()
- {
- assertTrue( newFilter().accept( ClassWithNestedTestClass.class ) );
- }
-
- @Test
- void classWithDeeplyNestedTestClassIsAccepted()
- {
- assertTrue( newFilter().accept( ClassWithDeeplyNestedTestClass.class )
);
- }
-
- @Test
- void classWithTestFactoryIsAccepted()
- {
- assertTrue( newFilter().accept( ClassWithTestFactory.class ) );
- }
-
- @Test
- void classWithNestedTestFactoryIsAccepted()
- {
- assertTrue( newFilter().accept( ClassWithNestedTestFactory.class ) );
- }
-
- private TestPlanScannerFilter newFilter()
- {
- return new TestPlanScannerFilter( LauncherFactory.create(), new
Filter<?>[0] );
- }
-
- private static class EmptyClass
- {
- }
-
- @SuppressWarnings("unused")
- private static class ClassWithMethods
- {
-
- void method1()
- {
- }
-
- void method2()
- {
- }
- }
-
- private static class ClassWithTestMethods
- {
-
- @Test
- void test1()
- {
- }
-
- @Test
- public void test2()
- {
- }
- }
-
- private static class ClassWithNestedTestClass
- {
-
- @SuppressWarnings("unused")
- void method()
- {
- }
-
- @Nested
- class TestClass
- {
-
- @Test
- void test1()
- {
- }
- }
- }
-
- private static class ClassWithDeeplyNestedTestClass
- {
-
- @Nested
- class Level1
- {
-
- @Nested
- class Level2
- {
-
- @Nested
- class TestClass
- {
-
- @Test
- void test1()
- {
- }
- }
- }
- }
- }
-
- private static class ClassWithTestFactory
- {
-
- @TestFactory
- Stream<DynamicTest> tests()
- {
- return Stream.empty();
- }
- }
-
- private static class ClassWithNestedTestFactory
- {
-
- @Nested
- class TestClass
- {
-
- @TestFactory
- List<DynamicTest> tests()
- {
- return emptyList();
- }
- }
- }
-
-}