From f9e83850ca0691aa9d57bb5da41793b71f07553f Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 7 Jan 2015 13:56:49 -0800 Subject: [PATCH] Make IntegrationTestPropertiesListener public Make IntegrationTestPropertiesListener public so that it can be used when @TestExecutionListeners are declared on a parent class. See gh-2135 --- .../boot/test/IntegrationTestPropertiesListener.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spring-boot/src/main/java/org/springframework/boot/test/IntegrationTestPropertiesListener.java b/spring-boot/src/main/java/org/springframework/boot/test/IntegrationTestPropertiesListener.java index 4b732dbd1c..e067a3100e 100644 --- a/spring-boot/src/main/java/org/springframework/boot/test/IntegrationTestPropertiesListener.java +++ b/spring-boot/src/main/java/org/springframework/boot/test/IntegrationTestPropertiesListener.java @@ -16,6 +16,7 @@ package org.springframework.boot.test; +import org.springframework.core.Ordered; import org.springframework.core.annotation.AnnotatedElementUtils; import org.springframework.core.annotation.AnnotationAttributes; import org.springframework.test.context.MergedContextConfiguration; @@ -30,7 +31,7 @@ import org.springframework.test.util.ReflectionTestUtils; * @author Phillip Webb * @since 1.2.0 */ -class IntegrationTestPropertiesListener extends AbstractTestExecutionListener { +public class IntegrationTestPropertiesListener extends AbstractTestExecutionListener { @Override public void prepareTestInstance(TestContext testContext) throws Exception { @@ -57,4 +58,9 @@ class IntegrationTestPropertiesListener extends AbstractTestExecutionListener { } } + @Override + public int getOrder() { + return Ordered.HIGHEST_PRECEDENCE; + } + }