use of org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener in project spring-security by spring-projects.
the class WithSecurityContextTestExcecutionListenerTests method withSecurityContextAfterSqlScripts.
// gh-3962
@Test
public void withSecurityContextAfterSqlScripts() {
SqlScriptsTestExecutionListener sql = new SqlScriptsTestExecutionListener();
WithSecurityContextTestExecutionListener security = new WithSecurityContextTestExecutionListener();
List<? extends TestExecutionListener> listeners = Arrays.asList(security, sql);
AnnotationAwareOrderComparator.sort(listeners);
assertThat(listeners).containsExactly(sql, security);
}
Aggregations