Commit f9e83850 authored by Phillip Webb's avatar Phillip Webb

Make IntegrationTestPropertiesListener public

Make IntegrationTestPropertiesListener public so that it can be used
when @TestExecutionListeners are declared on a parent class.

See gh-2135
parent 10177fb7
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
package org.springframework.boot.test; package org.springframework.boot.test;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.AnnotatedElementUtils; import org.springframework.core.annotation.AnnotatedElementUtils;
import org.springframework.core.annotation.AnnotationAttributes; import org.springframework.core.annotation.AnnotationAttributes;
import org.springframework.test.context.MergedContextConfiguration; import org.springframework.test.context.MergedContextConfiguration;
...@@ -30,7 +31,7 @@ import org.springframework.test.util.ReflectionTestUtils; ...@@ -30,7 +31,7 @@ import org.springframework.test.util.ReflectionTestUtils;
* @author Phillip Webb * @author Phillip Webb
* @since 1.2.0 * @since 1.2.0
*/ */
class IntegrationTestPropertiesListener extends AbstractTestExecutionListener { public class IntegrationTestPropertiesListener extends AbstractTestExecutionListener {
@Override @Override
public void prepareTestInstance(TestContext testContext) throws Exception { public void prepareTestInstance(TestContext testContext) throws Exception {
...@@ -57,4 +58,9 @@ class IntegrationTestPropertiesListener extends AbstractTestExecutionListener { ...@@ -57,4 +58,9 @@ class IntegrationTestPropertiesListener extends AbstractTestExecutionListener {
} }
} }
@Override
public int getOrder() {
return Ordered.HIGHEST_PRECEDENCE;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment