Update Javadoc regarding JUnit versions
This commit is contained in:
parent
537d539b1d
commit
8e9a553517
|
|
@ -59,7 +59,7 @@ import org.springframework.util.ReflectionUtils;
|
||||||
* <em>Spring TestContext Framework</em> to standard JUnit tests by means of the
|
* <em>Spring TestContext Framework</em> to standard JUnit tests by means of the
|
||||||
* {@link TestContextManager} and associated support classes and annotations.
|
* {@link TestContextManager} and associated support classes and annotations.
|
||||||
*
|
*
|
||||||
* <p>To use this class, simply annotate a JUnit 4 based test class with
|
* <p>To use this class, annotate a JUnit 4 based test class with
|
||||||
* {@code @RunWith(SpringJUnit4ClassRunner.class)} or {@code @RunWith(SpringRunner.class)}.
|
* {@code @RunWith(SpringJUnit4ClassRunner.class)} or {@code @RunWith(SpringRunner.class)}.
|
||||||
*
|
*
|
||||||
* <p>The following list constitutes all annotations currently supported directly
|
* <p>The following list constitutes all annotations currently supported directly
|
||||||
|
|
@ -82,7 +82,7 @@ import org.springframework.util.ReflectionUtils;
|
||||||
* <p>If you would like to use the Spring TestContext Framework with a runner
|
* <p>If you would like to use the Spring TestContext Framework with a runner
|
||||||
* other than this one, use {@link SpringClassRule} and {@link SpringMethodRule}.
|
* other than this one, use {@link SpringClassRule} and {@link SpringMethodRule}.
|
||||||
*
|
*
|
||||||
* <p><strong>NOTE:</strong> As of Spring Framework 4.3, this class requires JUnit 4.12 or higher.
|
* <p><strong>NOTE:</strong> This class requires JUnit 4.12 or higher.
|
||||||
*
|
*
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @author Juergen Hoeller
|
* @author Juergen Hoeller
|
||||||
|
|
@ -268,8 +268,7 @@ public class SpringJUnit4ClassRunner extends BlockJUnit4ClassRunner {
|
||||||
* JUnit-specified timeouts will work fine in combination with Spring
|
* JUnit-specified timeouts will work fine in combination with Spring
|
||||||
* transactions. However, JUnit-specific timeouts still differ from
|
* transactions. However, JUnit-specific timeouts still differ from
|
||||||
* Spring-specific timeouts in that the former execute in a separate
|
* Spring-specific timeouts in that the former execute in a separate
|
||||||
* thread while the latter simply execute in the main thread (like regular
|
* thread while the latter execute in the main thread (like regular tests).
|
||||||
* tests).
|
|
||||||
* @see #methodInvoker(FrameworkMethod, Object)
|
* @see #methodInvoker(FrameworkMethod, Object)
|
||||||
* @see #withBeforeTestExecutionCallbacks(FrameworkMethod, Object, Statement)
|
* @see #withBeforeTestExecutionCallbacks(FrameworkMethod, Object, Statement)
|
||||||
* @see #withAfterTestExecutionCallbacks(FrameworkMethod, Object, Statement)
|
* @see #withAfterTestExecutionCallbacks(FrameworkMethod, Object, Statement)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2016 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -21,7 +21,7 @@ import org.junit.runners.model.InitializationError;
|
||||||
/**
|
/**
|
||||||
* {@code SpringRunner} is an <em>alias</em> for the {@link SpringJUnit4ClassRunner}.
|
* {@code SpringRunner} is an <em>alias</em> for the {@link SpringJUnit4ClassRunner}.
|
||||||
*
|
*
|
||||||
* <p>To use this class, simply annotate a JUnit 4 based test class with
|
* <p>To use this class, annotate a JUnit 4 based test class with
|
||||||
* {@code @RunWith(SpringRunner.class)}.
|
* {@code @RunWith(SpringRunner.class)}.
|
||||||
*
|
*
|
||||||
* <p>If you would like to use the Spring TestContext Framework with a runner other than
|
* <p>If you would like to use the Spring TestContext Framework with a runner other than
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2018 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -72,7 +72,7 @@ import org.springframework.util.Assert;
|
||||||
* <li>{@link org.springframework.test.annotation.IfProfileValue @IfProfileValue}</li>
|
* <li>{@link org.springframework.test.annotation.IfProfileValue @IfProfileValue}</li>
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* <p><strong>NOTE:</strong> As of Spring Framework 4.3, this class requires JUnit 4.12 or higher.
|
* <p><strong>NOTE:</strong> This class requires JUnit 4.12 or higher.
|
||||||
*
|
*
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @author Philippe Marschall
|
* @author Philippe Marschall
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2021 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -76,7 +76,7 @@ import org.springframework.test.context.junit4.statements.SpringRepeat;
|
||||||
* <li>{@link org.springframework.test.annotation.IfProfileValue @IfProfileValue}</li>
|
* <li>{@link org.springframework.test.annotation.IfProfileValue @IfProfileValue}</li>
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* <p><strong>NOTE:</strong> As of Spring Framework 4.3, this class requires JUnit 4.12 or higher.
|
* <p><strong>NOTE:</strong> This class requires JUnit 4.12 or higher.
|
||||||
*
|
*
|
||||||
* <p><strong>WARNING:</strong> Due to the shortcomings of JUnit rules, the
|
* <p><strong>WARNING:</strong> Due to the shortcomings of JUnit rules, the
|
||||||
* {@code SpringMethodRule}
|
* {@code SpringMethodRule}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2018 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -28,6 +28,8 @@ import org.springframework.test.context.TestContextManager;
|
||||||
* JUnit 4 execution chain by calling {@link TestContextManager#beforeTestExecution
|
* JUnit 4 execution chain by calling {@link TestContextManager#beforeTestExecution
|
||||||
* beforeTestExecution()} on the supplied {@link TestContextManager}.
|
* beforeTestExecution()} on the supplied {@link TestContextManager}.
|
||||||
*
|
*
|
||||||
|
* <p><strong>NOTE:</strong> This class requires JUnit 4.9 or higher.
|
||||||
|
*
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
* @see #evaluate()
|
* @see #evaluate()
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2019 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -25,7 +25,7 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||||
import static org.assertj.core.api.Assertions.fail;
|
import static org.assertj.core.api.Assertions.fail;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* JUnit 4 based unit tests for {@link TestContextManager}, which verify proper
|
* JUnit Jupiter based unit tests for {@link TestContextManager}, which verify proper
|
||||||
* support for <em>suppressed exceptions</em> thrown by {@link TestExecutionListener
|
* support for <em>suppressed exceptions</em> thrown by {@link TestExecutionListener
|
||||||
* TestExecutionListeners}.
|
* TestExecutionListeners}.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2019 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -18,7 +18,6 @@ package org.springframework.test.context;
|
||||||
|
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
@ -26,7 +25,7 @@ import org.junit.jupiter.api.Test;
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* JUnit 4 based unit test for {@link TestContextManager}, which verifies proper
|
* JUnit Jupiter based unit test for {@link TestContextManager}, which verifies proper
|
||||||
* <em>execution order</em> of registered {@link TestExecutionListener
|
* <em>execution order</em> of registered {@link TestExecutionListener
|
||||||
* TestExecutionListeners}.
|
* TestExecutionListeners}.
|
||||||
*
|
*
|
||||||
|
|
@ -53,7 +52,7 @@ class TestContextManagerTests {
|
||||||
@Test
|
@Test
|
||||||
void listenerExecutionOrder() throws Exception {
|
void listenerExecutionOrder() throws Exception {
|
||||||
// @formatter:off
|
// @formatter:off
|
||||||
assertThat(this.testContextManager.getTestExecutionListeners().size()).as("Registered TestExecutionListeners").isEqualTo(3);
|
assertThat(this.testContextManager.getTestExecutionListeners()).as("Registered TestExecutionListeners").hasSize(3);
|
||||||
|
|
||||||
this.testContextManager.beforeTestMethod(this, this.testMethod);
|
this.testContextManager.beforeTestMethod(this, this.testMethod);
|
||||||
assertExecutionOrder("beforeTestMethod",
|
assertExecutionOrder("beforeTestMethod",
|
||||||
|
|
@ -104,7 +103,7 @@ class TestContextManagerTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void assertExecutionOrder(String usageContext, String... expectedBeforeTestMethodCalls) {
|
private static void assertExecutionOrder(String usageContext, String... expectedBeforeTestMethodCalls) {
|
||||||
assertThat(executionOrder).as("execution order (" + usageContext + ") ==>").isEqualTo(Arrays.asList(expectedBeforeTestMethodCalls));
|
assertThat(executionOrder).as("execution order (" + usageContext + ") ==>").containsExactly(expectedBeforeTestMethodCalls);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2019 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -25,7 +25,6 @@ import org.junit.jupiter.api.extension.ExtendWith;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.test.context.ContextConfiguration;
|
import org.springframework.test.context.ContextConfiguration;
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Person;
|
import org.springframework.test.context.junit.jupiter.comics.Person;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
@ -38,9 +37,6 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
* with JUnit Jupiter's {@link ExtendWith @ExtendWith} <b>and</b> Spring's
|
* with JUnit Jupiter's {@link ExtendWith @ExtendWith} <b>and</b> Spring's
|
||||||
* {@link ContextConfiguration @ContextConfiguration}.
|
* {@link ContextConfiguration @ContextConfiguration}.
|
||||||
*
|
*
|
||||||
* <p>To run these tests in an IDE that does not have built-in support for the JUnit
|
|
||||||
* Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
* @see SpringExtension
|
* @see SpringExtension
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2019 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -26,7 +26,6 @@ import org.junit.jupiter.api.extension.ExtensionContext.Store;
|
||||||
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.test.context.TestContextManager;
|
import org.springframework.test.context.TestContextManager;
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
import org.springframework.util.ReflectionUtils;
|
import org.springframework.util.ReflectionUtils;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
@ -40,9 +39,6 @@ import static org.mockito.Mockito.mock;
|
||||||
* results and exception handling; whereas, {@link DisabledIfTests} only tests
|
* results and exception handling; whereas, {@link DisabledIfTests} only tests
|
||||||
* the <em>happy paths</em>.
|
* the <em>happy paths</em>.
|
||||||
*
|
*
|
||||||
* <p>To run these tests in an IDE that does not have built-in support for the JUnit
|
|
||||||
* Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
* @see DisabledIfTests
|
* @see DisabledIfTests
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2019 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -22,7 +22,6 @@ import org.junit.jupiter.api.Test;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.test.context.TestPropertySource;
|
import org.springframework.test.context.TestPropertySource;
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.assertj.core.api.Assertions.fail;
|
import static org.assertj.core.api.Assertions.fail;
|
||||||
|
|
@ -31,9 +30,6 @@ import static org.assertj.core.api.Assertions.fail;
|
||||||
* Integration tests which verify support for {@link DisabledIf @DisabledIf}
|
* Integration tests which verify support for {@link DisabledIf @DisabledIf}
|
||||||
* in conjunction with the {@link SpringExtension} in a JUnit Jupiter environment.
|
* in conjunction with the {@link SpringExtension} in a JUnit Jupiter environment.
|
||||||
*
|
*
|
||||||
* <p>To run these tests in an IDE that does not have built-in support for the JUnit
|
|
||||||
* Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Tadaya Tsuyukubo
|
* @author Tadaya Tsuyukubo
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2019 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -22,7 +22,6 @@ import org.junit.jupiter.api.Test;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.test.context.TestPropertySource;
|
import org.springframework.test.context.TestPropertySource;
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.assertj.core.api.Assertions.fail;
|
import static org.assertj.core.api.Assertions.fail;
|
||||||
|
|
@ -31,9 +30,6 @@ import static org.assertj.core.api.Assertions.fail;
|
||||||
* Integration tests which verify support for {@link EnabledIf @EnabledIf}
|
* Integration tests which verify support for {@link EnabledIf @EnabledIf}
|
||||||
* in conjunction with the {@link SpringExtension} in a JUnit Jupiter environment.
|
* in conjunction with the {@link SpringExtension} in a JUnit Jupiter environment.
|
||||||
*
|
*
|
||||||
* <p>To run these tests in an IDE that does not have built-in support for the JUnit
|
|
||||||
* Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Tadaya Tsuyukubo
|
* @author Tadaya Tsuyukubo
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2020 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -32,7 +32,6 @@ import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder;
|
||||||
import org.springframework.test.context.TestContext;
|
import org.springframework.test.context.TestContext;
|
||||||
import org.springframework.test.context.TestExecutionListener;
|
import org.springframework.test.context.TestExecutionListener;
|
||||||
import org.springframework.test.context.TestExecutionListeners;
|
import org.springframework.test.context.TestExecutionListeners;
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
import org.springframework.test.context.transaction.AfterTransaction;
|
import org.springframework.test.context.transaction.AfterTransaction;
|
||||||
import org.springframework.test.context.transaction.BeforeTransaction;
|
import org.springframework.test.context.transaction.BeforeTransaction;
|
||||||
import org.springframework.transaction.PlatformTransactionManager;
|
import org.springframework.transaction.PlatformTransactionManager;
|
||||||
|
|
@ -58,9 +57,6 @@ import static org.junit.platform.testkit.engine.TestExecutionResultConditions.me
|
||||||
* <p>Indirectly, this class also verifies that all {@code TestExecutionListener}
|
* <p>Indirectly, this class also verifies that all {@code TestExecutionListener}
|
||||||
* lifecycle callbacks are called.
|
* lifecycle callbacks are called.
|
||||||
*
|
*
|
||||||
* <p>To run these tests in an IDE that does not have built-in support for the JUnit
|
|
||||||
* Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,6 @@ import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.context.support.GenericApplicationContext;
|
import org.springframework.context.support.GenericApplicationContext;
|
||||||
import org.springframework.test.context.ContextConfiguration;
|
import org.springframework.test.context.ContextConfiguration;
|
||||||
import org.springframework.test.context.TestPropertySource;
|
import org.springframework.test.context.TestPropertySource;
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Cat;
|
import org.springframework.test.context.junit.jupiter.comics.Cat;
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Dog;
|
import org.springframework.test.context.junit.jupiter.comics.Dog;
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Person;
|
import org.springframework.test.context.junit.jupiter.comics.Person;
|
||||||
|
|
@ -43,10 +42,6 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
* with JUnit Jupiter by registering the {@link SpringExtension} via a static field.
|
* with JUnit Jupiter by registering the {@link SpringExtension} via a static field.
|
||||||
* Note, however, that this is not the recommended way to register the {@code SpringExtension}.
|
* Note, however, that this is not the recommended way to register the {@code SpringExtension}.
|
||||||
*
|
*
|
||||||
* <p>
|
|
||||||
* To run these tests in an IDE that does not have built-in support for the JUnit
|
|
||||||
* Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.1
|
* @since 5.1
|
||||||
* @see SpringExtensionTests
|
* @see SpringExtensionTests
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2019 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -24,7 +24,6 @@ import org.junit.jupiter.params.provider.ValueSource;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Cat;
|
import org.springframework.test.context.junit.jupiter.comics.Cat;
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Dog;
|
import org.springframework.test.context.junit.jupiter.comics.Dog;
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Person;
|
import org.springframework.test.context.junit.jupiter.comics.Person;
|
||||||
|
|
@ -36,9 +35,6 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
* can be used with JUnit Jupiter's {@link ParameterizedTest @ParameterizedTest}
|
* can be used with JUnit Jupiter's {@link ParameterizedTest @ParameterizedTest}
|
||||||
* support in conjunction with the {@link SpringExtension}.
|
* support in conjunction with the {@link SpringExtension}.
|
||||||
*
|
*
|
||||||
* <p>To run these tests in an IDE that does not have built-in support for the
|
|
||||||
* JUnit Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
* @see SpringExtension
|
* @see SpringExtension
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,6 @@ import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.context.support.GenericApplicationContext;
|
import org.springframework.context.support.GenericApplicationContext;
|
||||||
import org.springframework.test.context.ContextConfiguration;
|
import org.springframework.test.context.ContextConfiguration;
|
||||||
import org.springframework.test.context.TestPropertySource;
|
import org.springframework.test.context.TestPropertySource;
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Cat;
|
import org.springframework.test.context.junit.jupiter.comics.Cat;
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Dog;
|
import org.springframework.test.context.junit.jupiter.comics.Dog;
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Person;
|
import org.springframework.test.context.junit.jupiter.comics.Person;
|
||||||
|
|
@ -42,9 +41,6 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
* Integration tests which demonstrate that the Spring TestContext Framework can
|
* Integration tests which demonstrate that the Spring TestContext Framework can
|
||||||
* be used with JUnit Jupiter via the {@link SpringExtension}.
|
* be used with JUnit Jupiter via the {@link SpringExtension}.
|
||||||
*
|
*
|
||||||
* <p>To run these tests in an IDE that does not have built-in support for the JUnit
|
|
||||||
* Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
* @see SpringExtension
|
* @see SpringExtension
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2019 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -22,7 +22,6 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.test.context.TestPropertySource;
|
import org.springframework.test.context.TestPropertySource;
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Dog;
|
import org.springframework.test.context.junit.jupiter.comics.Dog;
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Person;
|
import org.springframework.test.context.junit.jupiter.comics.Person;
|
||||||
|
|
||||||
|
|
@ -32,9 +31,6 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
* Integration tests which demonstrate support for {@link Autowired @Autowired}
|
* Integration tests which demonstrate support for {@link Autowired @Autowired}
|
||||||
* test class constructors with the Spring TestContext Framework and JUnit Jupiter.
|
* test class constructors with the Spring TestContext Framework and JUnit Jupiter.
|
||||||
*
|
*
|
||||||
* <p>To run these tests in an IDE that does not have built-in support for the JUnit
|
|
||||||
* Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
* @see SpringExtension
|
* @see SpringExtension
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2019 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -23,7 +23,6 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.test.context.TestPropertySource;
|
import org.springframework.test.context.TestPropertySource;
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Dog;
|
import org.springframework.test.context.junit.jupiter.comics.Dog;
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Person;
|
import org.springframework.test.context.junit.jupiter.comics.Person;
|
||||||
|
|
||||||
|
|
@ -34,9 +33,6 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
* parameters in test class constructors using {@link Autowired @Autowired}
|
* parameters in test class constructors using {@link Autowired @Autowired}
|
||||||
* and {@link Value @Value} with the Spring TestContext Framework and JUnit Jupiter.
|
* and {@link Value @Value} with the Spring TestContext Framework and JUnit Jupiter.
|
||||||
*
|
*
|
||||||
* <p>To run these tests in an IDE that does not have built-in support for the JUnit
|
|
||||||
* Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
* @see SpringExtension
|
* @see SpringExtension
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2019 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -23,7 +23,6 @@ import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.test.context.TestConstructor;
|
import org.springframework.test.context.TestConstructor;
|
||||||
import org.springframework.test.context.TestPropertySource;
|
import org.springframework.test.context.TestPropertySource;
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Dog;
|
import org.springframework.test.context.junit.jupiter.comics.Dog;
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Person;
|
import org.springframework.test.context.junit.jupiter.comics.Person;
|
||||||
|
|
||||||
|
|
@ -35,9 +34,6 @@ import static org.springframework.test.context.TestConstructor.AutowireMode.ALL;
|
||||||
* {@link Autowired @Autowired} test class constructors in conjunction with the
|
* {@link Autowired @Autowired} test class constructors in conjunction with the
|
||||||
* {@link TestConstructor @TestConstructor} annotation
|
* {@link TestConstructor @TestConstructor} annotation
|
||||||
*
|
*
|
||||||
* <p>To run these tests in an IDE that does not have built-in support for the JUnit
|
|
||||||
* Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.2
|
* @since 5.2
|
||||||
* @see SpringExtension
|
* @see SpringExtension
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2018 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
package org.springframework.test.context.junit.jupiter.defaultmethods;
|
package org.springframework.test.context.junit.jupiter.defaultmethods;
|
||||||
|
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Cat;
|
import org.springframework.test.context.junit.jupiter.comics.Cat;
|
||||||
|
|
||||||
|
|
@ -25,9 +24,6 @@ import org.springframework.test.context.junit.jupiter.comics.Cat;
|
||||||
* interface default methods and Java generics in JUnit Jupiter test classes when used
|
* interface default methods and Java generics in JUnit Jupiter test classes when used
|
||||||
* with the Spring TestContext Framework and the {@link SpringExtension}.
|
* with the Spring TestContext Framework and the {@link SpringExtension}.
|
||||||
*
|
*
|
||||||
* <p>To run these tests in an IDE that does not have built-in support for the JUnit
|
|
||||||
* Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2018 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
package org.springframework.test.context.junit.jupiter.defaultmethods;
|
package org.springframework.test.context.junit.jupiter.defaultmethods;
|
||||||
|
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Dog;
|
import org.springframework.test.context.junit.jupiter.comics.Dog;
|
||||||
|
|
||||||
|
|
@ -25,9 +24,6 @@ import org.springframework.test.context.junit.jupiter.comics.Dog;
|
||||||
* interface default methods and Java generics in JUnit Jupiter test classes when used
|
* interface default methods and Java generics in JUnit Jupiter test classes when used
|
||||||
* with the Spring TestContext Framework and the {@link SpringExtension}.
|
* with the Spring TestContext Framework and the {@link SpringExtension}.
|
||||||
*
|
*
|
||||||
* <p>To run these tests in an IDE that does not have built-in support for the JUnit
|
|
||||||
* Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2019 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -21,7 +21,6 @@ import java.util.List;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||||
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
|
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
|
||||||
import org.springframework.test.context.junit.jupiter.TestConfig;
|
import org.springframework.test.context.junit.jupiter.TestConfig;
|
||||||
|
|
@ -34,9 +33,6 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
* methods and Java generics in JUnit Jupiter test classes when used with the Spring
|
* methods and Java generics in JUnit Jupiter test classes when used with the Spring
|
||||||
* TestContext Framework and the {@link SpringExtension}.
|
* TestContext Framework and the {@link SpringExtension}.
|
||||||
*
|
*
|
||||||
* <p>To run these tests in an IDE that does not have built-in support for the JUnit
|
|
||||||
* Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2018 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
package org.springframework.test.context.junit.jupiter.generics;
|
package org.springframework.test.context.junit.jupiter.generics;
|
||||||
|
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Cat;
|
import org.springframework.test.context.junit.jupiter.comics.Cat;
|
||||||
|
|
||||||
|
|
@ -25,9 +24,6 @@ import org.springframework.test.context.junit.jupiter.comics.Cat;
|
||||||
* Java generics in JUnit Jupiter test classes when used with the Spring TestContext
|
* Java generics in JUnit Jupiter test classes when used with the Spring TestContext
|
||||||
* Framework and the {@link SpringExtension}.
|
* Framework and the {@link SpringExtension}.
|
||||||
*
|
*
|
||||||
* <p>To run these tests in an IDE that does not have built-in support for the JUnit
|
|
||||||
* Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2018 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
package org.springframework.test.context.junit.jupiter.generics;
|
package org.springframework.test.context.junit.jupiter.generics;
|
||||||
|
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Dog;
|
import org.springframework.test.context.junit.jupiter.comics.Dog;
|
||||||
|
|
||||||
|
|
@ -25,9 +24,6 @@ import org.springframework.test.context.junit.jupiter.comics.Dog;
|
||||||
* Java generics in JUnit Jupiter test classes when used with the Spring TestContext
|
* Java generics in JUnit Jupiter test classes when used with the Spring TestContext
|
||||||
* Framework and the {@link SpringExtension}.
|
* Framework and the {@link SpringExtension}.
|
||||||
*
|
*
|
||||||
* <p>To run these tests in an IDE that does not have built-in support for the JUnit
|
|
||||||
* Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2019 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -21,7 +21,6 @@ import java.util.List;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||||
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
|
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
|
||||||
import org.springframework.test.context.junit.jupiter.TestConfig;
|
import org.springframework.test.context.junit.jupiter.TestConfig;
|
||||||
|
|
@ -34,9 +33,6 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
* Java generics in JUnit Jupiter test classes when used with the Spring TestContext
|
* Java generics in JUnit Jupiter test classes when used with the Spring TestContext
|
||||||
* Framework and the {@link SpringExtension}.
|
* Framework and the {@link SpringExtension}.
|
||||||
*
|
*
|
||||||
* <p>To run these tests in an IDE that does not have built-in support for the JUnit
|
|
||||||
* Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2018 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -18,7 +18,6 @@ package org.springframework.test.context.junit.jupiter.generics;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Nested;
|
import org.junit.jupiter.api.Nested;
|
||||||
|
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Cat;
|
import org.springframework.test.context.junit.jupiter.comics.Cat;
|
||||||
import org.springframework.test.context.junit.jupiter.comics.Dog;
|
import org.springframework.test.context.junit.jupiter.comics.Dog;
|
||||||
|
|
@ -28,10 +27,6 @@ import org.springframework.test.context.junit.jupiter.comics.Dog;
|
||||||
* test classes when used with the Spring TestContext Framework and the
|
* test classes when used with the Spring TestContext Framework and the
|
||||||
* {@link SpringExtension}.
|
* {@link SpringExtension}.
|
||||||
*
|
*
|
||||||
* <p>
|
|
||||||
* To run these tests in an IDE that does not have built-in support for the JUnit
|
|
||||||
* Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.0.5
|
* @since 5.0.5
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2020 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -26,7 +26,6 @@ import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.test.context.NestedTestConfiguration;
|
import org.springframework.test.context.NestedTestConfiguration;
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||||
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
|
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
|
||||||
import org.springframework.test.context.junit.jupiter.nested.ConstructorInjectionNestedTests.TopLevelConfig;
|
import org.springframework.test.context.junit.jupiter.nested.ConstructorInjectionNestedTests.TopLevelConfig;
|
||||||
|
|
@ -39,10 +38,6 @@ import static org.springframework.test.context.NestedTestConfiguration.Enclosing
|
||||||
* with the {@link SpringExtension} in a JUnit Jupiter environment ... when using
|
* with the {@link SpringExtension} in a JUnit Jupiter environment ... when using
|
||||||
* constructor injection as opposed to field injection (see SPR-16653).
|
* constructor injection as opposed to field injection (see SPR-16653).
|
||||||
*
|
*
|
||||||
* <p>
|
|
||||||
* To run these tests in an IDE that does not have built-in support for the JUnit
|
|
||||||
* Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.0.5
|
* @since 5.0.5
|
||||||
* @see ContextConfigurationNestedTests
|
* @see ContextConfigurationNestedTests
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2019 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -20,7 +20,6 @@ import org.junit.jupiter.api.BeforeEach;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.http.MediaType;
|
import org.springframework.http.MediaType;
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||||
import org.springframework.test.web.servlet.MockMvc;
|
import org.springframework.test.web.servlet.MockMvc;
|
||||||
import org.springframework.web.context.WebApplicationContext;
|
import org.springframework.web.context.WebApplicationContext;
|
||||||
|
|
@ -39,9 +38,6 @@ import static org.springframework.test.web.servlet.setup.MockMvcBuilders.webAppC
|
||||||
* {@link SpringExtension} (registered via a custom
|
* {@link SpringExtension} (registered via a custom
|
||||||
* {@link SpringJUnitWebConfig @SpringJUnitWebConfig} composed annotation).
|
* {@link SpringJUnitWebConfig @SpringJUnitWebConfig} composed annotation).
|
||||||
*
|
*
|
||||||
* <p>To run these tests in an IDE that does not have built-in support for the JUnit
|
|
||||||
* Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
* @see SpringExtension
|
* @see SpringExtension
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2019 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -20,7 +20,6 @@ import org.junit.jupiter.api.DisplayName;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.http.MediaType;
|
import org.springframework.http.MediaType;
|
||||||
import org.springframework.test.context.junit.SpringJUnitJupiterTestSuite;
|
|
||||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||||
import org.springframework.test.web.servlet.MockMvc;
|
import org.springframework.test.web.servlet.MockMvc;
|
||||||
import org.springframework.web.context.WebApplicationContext;
|
import org.springframework.web.context.WebApplicationContext;
|
||||||
|
|
@ -42,9 +41,6 @@ import static org.springframework.test.web.servlet.setup.MockMvcBuilders.webAppC
|
||||||
* This allows the {@link MockMvc} instance to be configured local to the
|
* This allows the {@link MockMvc} instance to be configured local to the
|
||||||
* test method without any fields in the test class.
|
* test method without any fields in the test class.
|
||||||
*
|
*
|
||||||
* <p>To run these tests in an IDE that does not have built-in support for the JUnit
|
|
||||||
* Platform, simply run {@link SpringJUnitJupiterTestSuite} as a JUnit 4 test.
|
|
||||||
*
|
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
* @see SpringExtension
|
* @see SpringExtension
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue