Skip to content

Commit f9e8385

Browse files
committed
Make IntegrationTestPropertiesListener public
Make IntegrationTestPropertiesListener public so that it can be used when @TestExecutionListeners are declared on a parent class. See gh-2135
1 parent 10177fb commit f9e8385

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spring-boot/src/main/java/org/springframework/boot/test/IntegrationTestPropertiesListener.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package org.springframework.boot.test;
1818

19+
import org.springframework.core.Ordered;
1920
import org.springframework.core.annotation.AnnotatedElementUtils;
2021
import org.springframework.core.annotation.AnnotationAttributes;
2122
import org.springframework.test.context.MergedContextConfiguration;
@@ -30,7 +31,7 @@
3031
* @author Phillip Webb
3132
* @since 1.2.0
3233
*/
33-
class IntegrationTestPropertiesListener extends AbstractTestExecutionListener {
34+
public class IntegrationTestPropertiesListener extends AbstractTestExecutionListener {
3435

3536
@Override
3637
public void prepareTestInstance(TestContext testContext) throws Exception {
@@ -57,4 +58,9 @@ private void addPropertySourceProperties(TestContext testContext, String[] prope
5758
}
5859
}
5960

61+
@Override
62+
public int getOrder() {
63+
return Ordered.HIGHEST_PRECEDENCE;
64+
}
65+
6066
}

0 commit comments

Comments
 (0)