From 098c924e329ba43c5f6d346ccba5c1e1a58a65ad Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Fri, 2 Dec 2022 18:11:28 +0100 Subject: [PATCH] Introduce @Suite classes for individual modules --- .../springframework/SpringCoreTestSuite.java | 34 +++++++++++++++++++ .../spel/SpringExpressionTestSuite.java | 34 +++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 spring-core/src/test/java/org/springframework/SpringCoreTestSuite.java create mode 100644 spring-expression/src/test/java/org/springframework/expression/spel/SpringExpressionTestSuite.java diff --git a/spring-core/src/test/java/org/springframework/SpringCoreTestSuite.java b/spring-core/src/test/java/org/springframework/SpringCoreTestSuite.java new file mode 100644 index 0000000000..a2d6234353 --- /dev/null +++ b/spring-core/src/test/java/org/springframework/SpringCoreTestSuite.java @@ -0,0 +1,34 @@ +/* + * Copyright 2002-2022 the original author or authors. + * + * Licensed 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 + * + * https://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. + */ + +package org.springframework; + +import org.junit.platform.suite.api.IncludeClassNamePatterns; +import org.junit.platform.suite.api.SelectPackages; +import org.junit.platform.suite.api.Suite; + +/** + * JUnit Platform based test suite for tests in the spring-core module. + * + *

This suite is only intended to be used manually within an IDE. + * + * @author Sam Brannen + */ +@Suite +@SelectPackages({"org.springframework.core", "org.springframework.util"}) +@IncludeClassNamePatterns(".*Tests?$") +class SpringCoreTestSuite { +} diff --git a/spring-expression/src/test/java/org/springframework/expression/spel/SpringExpressionTestSuite.java b/spring-expression/src/test/java/org/springframework/expression/spel/SpringExpressionTestSuite.java new file mode 100644 index 0000000000..eca319fecb --- /dev/null +++ b/spring-expression/src/test/java/org/springframework/expression/spel/SpringExpressionTestSuite.java @@ -0,0 +1,34 @@ +/* + * Copyright 2002-2022 the original author or authors. + * + * Licensed 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 + * + * https://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. + */ + +package org.springframework.expression.spel; + +import org.junit.platform.suite.api.IncludeClassNamePatterns; +import org.junit.platform.suite.api.SelectPackages; +import org.junit.platform.suite.api.Suite; + +/** + * JUnit Platform based test suite for tests in the spring-expression module. + * + *

This suite is only intended to be used manually within an IDE. + * + * @author Sam Brannen + */ +@Suite +@SelectPackages("org.springframework.expression.spel") +@IncludeClassNamePatterns(".*Tests?$") +class SpringExpressionTestSuite { +}