Skip to content

Commit 0c92d7d

Browse files
committed
fix nits
1 parent 7b43edc commit 0c92d7d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
2222
*/
2323
package opengrok.auth.plugin;
2424

@@ -92,7 +92,6 @@ public void setUp() {
9292
plugin.load(parameters, new FakeLdapFacade());
9393
}
9494

95-
@SuppressWarnings("unchecked")
9695
private void prepareRequest(String username, String mail, String... ous) {
9796
dummyRequest = new DummyHttpServletRequestLdap();
9897
dummyRequest.setAttribute(UserPlugin.REQUEST_ATTR,
@@ -124,7 +123,7 @@ private Group makeGroup(String name) {
124123
* Test of {@code isAllowed} method.
125124
*/
126125
@Test
127-
public void testIsAllowed() {
126+
void testIsAllowed() {
128127
/*
129128
* whitelist[mail] => [[email protected], [email protected], just_a_text]
130129
*/
@@ -165,7 +164,7 @@ public void testIsAllowed() {
165164
* </ul>
166165
*/
167166
@Test
168-
public void testAttrLookup() throws LdapException {
167+
void testAttrLookup() throws LdapException {
169168
String attr_to_get = "mail";
170169
String instance_num = "42";
171170
String mail_attr_value = "[email protected]";

0 commit comments

Comments
 (0)