Skip to content

Commit 9ffe29e

Browse files
committed
Use this. Prefix in Sandbox Tests
Issue gh-745
1 parent 54b8019 commit 9ffe29e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sandbox/src/test/java/org/springframework/ldap/control/VirtualListViewControlDirContextProcessorTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class VirtualListViewControlDirContextProcessorTests {
5252
@Before
5353
public void setUp() throws Exception {
5454
// Create ldapContext mock
55-
ldapContextMock = mock(LdapContext.class);
55+
this.ldapContextMock = mock(LdapContext.class);
5656
}
5757

5858
@Test
@@ -108,10 +108,10 @@ public void testPostProcess() throws Exception {
108108
int virtualListViewResult = 53; // unwilling to perform
109109
byte[] encoded = encodeResponseValue(10, listSize, virtualListViewResult);
110110
VirtualListViewResponseControl control = new VirtualListViewResponseControl(OID_RESPONSE, false, encoded);
111-
when(ldapContextMock.getResponseControls()).thenReturn(new Control[] { control });
111+
when(this.ldapContextMock.getResponseControls()).thenReturn(new Control[] { control });
112112

113113
try {
114-
tested.postProcess(ldapContextMock);
114+
tested.postProcess(this.ldapContextMock);
115115
fail("OperationNotSupportedException expected");
116116
}
117117
catch (OperationNotSupportedException expected) {

0 commit comments

Comments
 (0)