JdbcAclServiceTests fix setup ordering

This commit is contained in:
Rob Winch 2021-07-08 15:13:41 -05:00
parent bb00268922
commit f873ef9e8c
1 changed files with 3 additions and 6 deletions

View File

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