|
| 1 | +/* |
| 2 | + * Copyright 2002-2024 the original author or authors. |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
| 17 | +package org.springframework.test.context.bean.override; |
| 18 | + |
| 19 | +import org.junit.jupiter.api.ClassOrderer; |
| 20 | +import org.junit.platform.suite.api.ConfigurationParameter; |
| 21 | +import org.junit.platform.suite.api.ExcludeTags; |
| 22 | +import org.junit.platform.suite.api.IncludeClassNamePatterns; |
| 23 | +import org.junit.platform.suite.api.IncludeEngines; |
| 24 | +import org.junit.platform.suite.api.SelectPackages; |
| 25 | +import org.junit.platform.suite.api.Suite; |
| 26 | + |
| 27 | +/** |
| 28 | + * JUnit Platform based test suite for tests that involve bean override support |
| 29 | + * in the Spring TestContext Framework. |
| 30 | + * |
| 31 | + * <p><strong>This suite is only intended to be used manually within an IDE.</strong> |
| 32 | + * |
| 33 | + * <h3>Logging Configuration</h3> |
| 34 | + * |
| 35 | + * <p>In order for our log4j2 configuration to be used in an IDE, you must |
| 36 | + * set the following system property before running any tests — for |
| 37 | + * example, in <em>Run Configurations</em> in Eclipse. |
| 38 | + * |
| 39 | + * <pre style="code"> |
| 40 | + * -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager |
| 41 | + * </pre> |
| 42 | + * |
| 43 | + * @author Sam Brannen |
| 44 | + * @since 6.2 |
| 45 | + */ |
| 46 | +@Suite |
| 47 | +@IncludeEngines("junit-jupiter") |
| 48 | +@SelectPackages("org.springframework.test.context.bean.override") |
| 49 | +@IncludeClassNamePatterns(".*Tests$") |
| 50 | +@ExcludeTags("failing-test-case") |
| 51 | +@ConfigurationParameter( |
| 52 | + key = ClassOrderer.DEFAULT_ORDER_PROPERTY_NAME, |
| 53 | + value = "org.junit.jupiter.api.ClassOrderer$ClassName" |
| 54 | +) |
| 55 | +public class BeanOverrideTestSuite { |
| 56 | +} |
0 commit comments