use of org.springframework.test.context.support.AbstractTestExecutionListener in project spring-security by spring-projects.
the class WithSecurityContextTestExcecutionListenerTests method orderOverridden.
// SEC-2709
@Test
public void orderOverridden() {
AbstractTestExecutionListener otherListener = new AbstractTestExecutionListener() {
};
List<TestExecutionListener> listeners = new ArrayList<TestExecutionListener>();
listeners.add(otherListener);
listeners.add(this.listener);
AnnotationAwareOrderComparator.sort(listeners);
assertThat(listeners).containsSequence(this.listener, otherListener);
}
Aggregations