소스 검색

JdbcAclServiceTests fix setup ordering

Rob Winch 4 년 전
부모
커밋
f873ef9e8c
1개의 변경된 파일3개의 추가작업 그리고 6개의 파일을 삭제
  1. 3 6
      acl/src/test/java/org/springframework/security/acls/jdbc/JdbcAclServiceTests.java

+ 3 - 6
acl/src/test/java/org/springframework/security/acls/jdbc/JdbcAclServiceTests.java

@@ -76,18 +76,15 @@ public class JdbcAclServiceTests {
 
 	@BeforeEach
 	public void setUp() {
-		this.aclService = new JdbcAclService(this.jdbcOperations, this.lookupStrategy);
-		this.aclServiceIntegration = new JdbcAclService(this.embeddedDatabase, this.lookupStrategy);
-	}
-
-	@BeforeEach
-	public void setUpEmbeddedDatabase() {
 		// @formatter:off
 		this.embeddedDatabase = new EmbeddedDatabaseBuilder()
 			.addScript("createAclSchemaWithAclClassIdType.sql")
 			.addScript("db/sql/test_data_hierarchy.sql")
 			.build();
 		// @formatter:on
+
+		this.aclService = new JdbcAclService(this.jdbcOperations, this.lookupStrategy);
+		this.aclServiceIntegration = new JdbcAclService(this.embeddedDatabase, this.lookupStrategy);
 	}
 
 	@AfterEach