Use this. Prefix in Sandbox Tests

Issue gh-745
This commit is contained in:
Josh Cummings
2023-05-09 17:23:16 -06:00
parent 54b8019573
commit 9ffe29e1d7

View File

@@ -52,7 +52,7 @@ public class VirtualListViewControlDirContextProcessorTests {
@Before
public void setUp() throws Exception {
// Create ldapContext mock
ldapContextMock = mock(LdapContext.class);
this.ldapContextMock = mock(LdapContext.class);
}
@Test
@@ -108,10 +108,10 @@ public class VirtualListViewControlDirContextProcessorTests {
int virtualListViewResult = 53; // unwilling to perform
byte[] encoded = encodeResponseValue(10, listSize, virtualListViewResult);
VirtualListViewResponseControl control = new VirtualListViewResponseControl(OID_RESPONSE, false, encoded);
when(ldapContextMock.getResponseControls()).thenReturn(new Control[] { control });
when(this.ldapContextMock.getResponseControls()).thenReturn(new Control[] { control });
try {
tested.postProcess(ldapContextMock);
tested.postProcess(this.ldapContextMock);
fail("OperationNotSupportedException expected");
}
catch (OperationNotSupportedException expected) {