Skip to content

Commit 8ce243f

Browse files
committed
fix name
1 parent 98060ce commit 8ce243f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/src/test/java/opengrok/auth/plugin/LdapAttrPluginTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,15 @@ void testAttrLookup() throws LdapException {
170170
String mail_attr_value = "[email protected]";
171171

172172
// Create mock LDAP provider, simulating the work of LdapUserPlugin.
173-
AbstractLdapProvider mockprovider = mock(LdapFacade.class);
173+
AbstractLdapProvider mockProvider = mock(LdapFacade.class);
174174
Map<String, Set<String>> attrs = new HashMap<>();
175175
attrs.put(attr_to_get, Collections.singleton(mail_attr_value));
176176
final String dn = "cn=FOO_BAR,L=EMEA,DC=FOO,DC=COM";
177177
AbstractLdapProvider.LdapSearchResult<Map<String, Set<String>>> result =
178178
new AbstractLdapProvider.LdapSearchResult<>(dn, attrs);
179179
assertNotNull(result);
180180
// TODO use Mockito Argument captor ?
181-
when(mockprovider.lookupLdapContent(anyString(), any(String[].class))).
181+
when(mockProvider.lookupLdapContent(anyString(), any(String[].class))).
182182
thenReturn(result);
183183

184184
// Load the LdapAttrPlugin using the mock LDAP provider.
@@ -187,7 +187,7 @@ void testAttrLookup() throws LdapException {
187187
parameters.put(LdapAttrPlugin.FILE_PARAM, whitelistFile.getAbsolutePath());
188188
parameters.put(LdapAttrPlugin.ATTR_PARAM, attr_to_get);
189189
parameters.put(LdapAttrPlugin.INSTANCE_PARAM, instance_num);
190-
plugin.load(parameters, mockprovider);
190+
plugin.load(parameters, mockProvider);
191191

192192
LdapUser ldapUser = new LdapUser(dn, null);
193193
HttpServletRequest request = new DummyHttpServletRequestLdap();

0 commit comments

Comments
 (0)