Use this. Prefix in Test Support Tests

Issue gh-745
This commit is contained in:
Josh Cummings
2023-05-09 17:40:07 -06:00
parent a42a8dab83
commit c669d4c4f9
2 changed files with 8 additions and 8 deletions

View File

@@ -37,15 +37,15 @@ public class EmbeddedLdapServerFactoryBeanTests {
@After
public void setup() {
if (ctx != null) {
ctx.close();
if (this.ctx != null) {
this.ctx.close();
}
}
@Test
public void testServerStartup() throws Exception {
ctx = new ClassPathXmlApplicationContext("/applicationContext-ldifPopulator.xml");
LdapTemplate ldapTemplate = ctx.getBean(LdapTemplate.class);
this.ctx = new ClassPathXmlApplicationContext("/applicationContext-ldifPopulator.xml");
LdapTemplate ldapTemplate = this.ctx.getBean(LdapTemplate.class);
assertThat(ldapTemplate).isNotNull();
List<String> list = ldapTemplate.search(LdapQueryBuilder.query().where("objectclass").is("person"),

View File

@@ -37,15 +37,15 @@ public class TestContextSourceFactoryBeanTests {
@After
public void setup() {
if (ctx != null) {
ctx.close();
if (this.ctx != null) {
this.ctx.close();
}
}
@Test
public void testServerStartup() throws Exception {
ctx = new ClassPathXmlApplicationContext("/applicationContext-testContextSource.xml");
LdapTemplate ldapTemplate = ctx.getBean(LdapTemplate.class);
this.ctx = new ClassPathXmlApplicationContext("/applicationContext-testContextSource.xml");
LdapTemplate ldapTemplate = this.ctx.getBean(LdapTemplate.class);
assertThat(ldapTemplate).isNotNull();
List<String> list = ldapTemplate.search(LdapQueryBuilder.query().where("objectclass").is("person"),