Revise TestExecutionListener order values documentation
See gh-34265
This commit is contained in:
parent
128e90064e
commit
09086fc648
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2024 the original author or authors.
|
* Copyright 2002-2025 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.
|
||||||
|
@ -40,7 +40,7 @@ public class BeanOverrideTestExecutionListener extends AbstractTestExecutionList
|
||||||
* Returns {@code 1950}, which ensures that the {@code BeanOverrideTestExecutionListener}
|
* Returns {@code 1950}, which ensures that the {@code BeanOverrideTestExecutionListener}
|
||||||
* is ordered after the
|
* is ordered after the
|
||||||
* {@link org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener
|
* {@link org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener
|
||||||
* DirtiesContextBeforeModesTestExecutionListener} and just before the
|
* DirtiesContextBeforeModesTestExecutionListener} and before the
|
||||||
* {@link DependencyInjectionTestExecutionListener}.
|
* {@link DependencyInjectionTestExecutionListener}.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -74,7 +74,9 @@ public class MockitoResetTestExecutionListener extends AbstractTestExecutionList
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns {@code Ordered.LOWEST_PRECEDENCE - 100}.
|
* Returns {@code Ordered.LOWEST_PRECEDENCE - 100}, which ensures that the
|
||||||
|
* {@code MockitoResetTestExecutionListener} is ordered after all standard
|
||||||
|
* {@code TestExecutionListener} implementations.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int getOrder() {
|
public int getOrder() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2020 the original author or authors.
|
* Copyright 2002-2025 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.
|
||||||
|
@ -64,9 +64,11 @@ public class ApplicationEventsTestExecutionListener extends AbstractTestExecutio
|
||||||
* Returns {@code 1800}, which ensures that the {@code ApplicationEventsTestExecutionListener}
|
* Returns {@code 1800}, which ensures that the {@code ApplicationEventsTestExecutionListener}
|
||||||
* is ordered after the
|
* is ordered after the
|
||||||
* {@link org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener
|
* {@link org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener
|
||||||
* DirtiesContextBeforeModesTestExecutionListener} and just before the
|
* DirtiesContextBeforeModesTestExecutionListener} and before the
|
||||||
* {@link org.springframework.test.context.bean.override.BeanOverrideTestExecutionListener
|
* {@link org.springframework.test.context.bean.override.BeanOverrideTestExecutionListener
|
||||||
* BeanOverrideTestExecutionListener}.
|
* BeanOverrideTestExecutionListener} and the
|
||||||
|
* {@link org.springframework.test.context.support.DependencyInjectionTestExecutionListener
|
||||||
|
* DependencyInjectionTestExecutionListener}.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public final int getOrder() {
|
public final int getOrder() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2022 the original author or authors.
|
* Copyright 2002-2025 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.
|
||||||
|
@ -101,7 +101,9 @@ public class EventPublishingTestExecutionListener extends AbstractTestExecutionL
|
||||||
* Returns {@code 10000}, which ensures that the {@code EventPublishingTestExecutionListener}
|
* Returns {@code 10000}, which ensures that the {@code EventPublishingTestExecutionListener}
|
||||||
* is ordered after the
|
* is ordered after the
|
||||||
* {@link org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener
|
* {@link org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener
|
||||||
* SqlScriptsTestExecutionListener}.
|
* SqlScriptsTestExecutionListener} and before the
|
||||||
|
* {@link org.springframework.test.context.bean.override.mockito.MockitoResetTestExecutionListener
|
||||||
|
* MockitoResetTestExecutionListener}.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public final int getOrder() {
|
public final int getOrder() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2024 the original author or authors.
|
* Copyright 2002-2025 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.
|
||||||
|
@ -129,7 +129,7 @@ public class SqlScriptsTestExecutionListener extends AbstractTestExecutionListen
|
||||||
* Returns {@code 5000}, which ensures that the {@code SqlScriptsTestExecutionListener}
|
* Returns {@code 5000}, which ensures that the {@code SqlScriptsTestExecutionListener}
|
||||||
* is ordered after the
|
* is ordered after the
|
||||||
* {@link org.springframework.test.context.transaction.TransactionalTestExecutionListener
|
* {@link org.springframework.test.context.transaction.TransactionalTestExecutionListener
|
||||||
* TransactionalTestExecutionListener} and just before the
|
* TransactionalTestExecutionListener} and before the
|
||||||
* {@link org.springframework.test.context.event.EventPublishingTestExecutionListener
|
* {@link org.springframework.test.context.event.EventPublishingTestExecutionListener
|
||||||
* EventPublishingTestExecutionListener}.
|
* EventPublishingTestExecutionListener}.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2024 the original author or authors.
|
* Copyright 2002-2025 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.
|
||||||
|
@ -107,10 +107,10 @@ class MicrometerObservationRegistryTestExecutionListener extends AbstractTestExe
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns {@code 2500}, which ensures that the {@code MicrometerObservationRegistryTestExecutionListener}
|
* Returns {@code 2500}, which ensures that the
|
||||||
* is ordered after the
|
* {@code MicrometerObservationRegistryTestExecutionListener} is ordered after the
|
||||||
* {@link org.springframework.test.context.support.DependencyInjectionTestExecutionListener
|
* {@link org.springframework.test.context.support.DependencyInjectionTestExecutionListener
|
||||||
* DependencyInjectionTestExecutionListener} and just before the
|
* DependencyInjectionTestExecutionListener} and before the
|
||||||
* {@link org.springframework.test.context.support.DirtiesContextTestExecutionListener
|
* {@link org.springframework.test.context.support.DirtiesContextTestExecutionListener
|
||||||
* DirtiesContextTestExecutionListener}.
|
* DirtiesContextTestExecutionListener}.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2024 the original author or authors.
|
* Copyright 2002-2025 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.
|
||||||
|
@ -38,8 +38,7 @@ public class CommonCachesTestExecutionListener extends AbstractTestExecutionList
|
||||||
/**
|
/**
|
||||||
* Returns {@code 3005}, which ensures that the {@code CommonCachesTestExecutionListener}
|
* Returns {@code 3005}, which ensures that the {@code CommonCachesTestExecutionListener}
|
||||||
* is ordered after the
|
* is ordered after the
|
||||||
* {@link org.springframework.test.context.support.DirtiesContextTestExecutionListener
|
* {@link DirtiesContextTestExecutionListener DirtiesContextTestExecutionListener} and before the
|
||||||
* DirtiesContextTestExecutionListener} and just before the
|
|
||||||
* {@link org.springframework.test.context.transaction.TransactionalTestExecutionListener
|
* {@link org.springframework.test.context.transaction.TransactionalTestExecutionListener
|
||||||
* TransactionalTestExecutionListener}.
|
* TransactionalTestExecutionListener}.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2024 the original author or authors.
|
* Copyright 2002-2025 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.
|
||||||
|
@ -63,12 +63,14 @@ public class DependencyInjectionTestExecutionListener extends AbstractTestExecut
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns {@code 2000}, which ensures that the {@code ApplicationEventsTestExecutionListener}
|
* Returns {@code 2000}, which ensures that the {@code DependencyInjectionTestExecutionListener}
|
||||||
* is ordered after the
|
* is ordered after the
|
||||||
* {@link org.springframework.test.context.bean.override.BeanOverrideTestExecutionListener
|
* {@link DirtiesContextBeforeModesTestExecutionListener DirtiesContextBeforeModesTestExecutionListener}
|
||||||
* BeanOverrideTestExecutionListener} and just before the
|
* and the {@link org.springframework.test.context.bean.override.BeanOverrideTestExecutionListener
|
||||||
* {@link org.springframework.test.context.support.DirtiesContextTestExecutionListener
|
* BeanOverrideTestExecutionListener} and before the
|
||||||
* DirtiesContextTestExecutionListener}.
|
* {@link org.springframework.test.context.observation.MicrometerObservationRegistryTestExecutionListener
|
||||||
|
* MicrometerObservationRegistryTestExecutionListener} and the
|
||||||
|
* {@link DirtiesContextTestExecutionListener DirtiesContextTestExecutionListener}.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public final int getOrder() {
|
public final int getOrder() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2018 the original author or authors.
|
* Copyright 2002-2025 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.
|
||||||
|
@ -58,7 +58,9 @@ public class DirtiesContextBeforeModesTestExecutionListener extends AbstractDirt
|
||||||
* Returns {@code 1500}, which ensures that the {@code DirtiesContextBeforeModesTestExecutionListener}
|
* Returns {@code 1500}, which ensures that the {@code DirtiesContextBeforeModesTestExecutionListener}
|
||||||
* is ordered after the
|
* is ordered after the
|
||||||
* {@link org.springframework.test.context.web.ServletTestExecutionListener
|
* {@link org.springframework.test.context.web.ServletTestExecutionListener
|
||||||
* ServletTestExecutionListener} and just before the
|
* ServletTestExecutionListener} and before the
|
||||||
|
* {@link org.springframework.test.context.event.ApplicationEventsTestExecutionListener
|
||||||
|
* ApplicationEventsTestExecutionListener} and the
|
||||||
* {@link org.springframework.test.context.bean.override.BeanOverrideTestExecutionListener
|
* {@link org.springframework.test.context.bean.override.BeanOverrideTestExecutionListener
|
||||||
* BeanOverrideTestExecutionListener}.
|
* BeanOverrideTestExecutionListener}.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2018 the original author or authors.
|
* Copyright 2002-2025 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.
|
||||||
|
@ -57,10 +57,8 @@ public class DirtiesContextTestExecutionListener extends AbstractDirtiesContextT
|
||||||
/**
|
/**
|
||||||
* Returns {@code 3000}, which ensures that the {@code DirtiesContextTestExecutionListener}
|
* Returns {@code 3000}, which ensures that the {@code DirtiesContextTestExecutionListener}
|
||||||
* is ordered after the
|
* is ordered after the
|
||||||
* {@link org.springframework.test.context.support.DependencyInjectionTestExecutionListener
|
* {@link DependencyInjectionTestExecutionListener DependencyInjectionTestExecutionListener}
|
||||||
* DependencyInjectionTestExecutionListener} and just before the
|
* and before the {@link CommonCachesTestExecutionListener CommonCachesTestExecutionListener}.
|
||||||
* {@link org.springframework.test.context.support.CommonCachesTestExecutionListener
|
|
||||||
* CommonCachesTestExecutionListener}.
|
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public final int getOrder() {
|
public final int getOrder() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2023 the original author or authors.
|
* Copyright 2002-2025 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.
|
||||||
|
@ -180,7 +180,7 @@ public class TransactionalTestExecutionListener extends AbstractTestExecutionLis
|
||||||
* Returns {@code 4000}, which ensures that the {@code TransactionalTestExecutionListener}
|
* Returns {@code 4000}, which ensures that the {@code TransactionalTestExecutionListener}
|
||||||
* is ordered after the
|
* is ordered after the
|
||||||
* {@link org.springframework.test.context.support.CommonCachesTestExecutionListener
|
* {@link org.springframework.test.context.support.CommonCachesTestExecutionListener
|
||||||
* CommonCachesTestExecutionListener} and just before the
|
* CommonCachesTestExecutionListener} and before the
|
||||||
* {@link org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener
|
* {@link org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener
|
||||||
* SqlScriptsTestExecutionListener}.
|
* SqlScriptsTestExecutionListener}.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2022 the original author or authors.
|
* Copyright 2002-2025 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.
|
||||||
|
|
Loading…
Reference in New Issue