Skip to content

Commit b29ff8a

Browse files
committed
HADOOP-18074 - address checkstyles
1 parent 918b3c8 commit b29ff8a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestLdapGroupsMappingWithOneQuery.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ private void doTestGetGroupsWithFallback()
108108
doReturn(groupNames).when(groupDN).getAll();
109109
String groupName1 = "CN=abc,DC=foo,DC=bar,DC=com";
110110
String groupName2 = "CN=xyz,DC=foo,DC=bar,DC=com";
111-
String groupName3 = "ipaUniqueID=e4a9a634-bb24-11ec-aec1-06ede52b5fe1,cn=sudorules,cn=sudo,dc=d\n" +
112-
" ex-priv,dc=xcu2-8y8x,dc=dev,dc=cldr,dc=work";
111+
String groupName3 = "ipaUniqueID=e4a9a634-bb24-11ec-aec1-06ede52b5fe1," +
112+
"CN=sudo,DC=foo,DC=bar,DC=com";
113113
doReturn(groupName1).doReturn(groupName2).doReturn(groupName3).
114114
when(groupNames).next();
115115
when(groupNames.hasMore()).thenReturn(true).thenReturn(true).
@@ -142,8 +142,9 @@ private void doTestGetGroupsWithFallback()
142142
verify(getContext(), times(3)).search(anyString(), anyString(),
143143
any(Object[].class), any(SearchControls.class));
144144
}
145+
145146
class TestLdapGroupsMapping extends LdapGroupsMapping {
146-
boolean secondaryQueryCalled = false;
147+
private boolean secondaryQueryCalled = false;
147148
public boolean isSecondaryQueryCalled() {
148149
return secondaryQueryCalled;
149150
}
@@ -153,4 +154,4 @@ Set<String> lookupGroup(SearchResult result, DirContext c,
153154
return super.lookupGroup(result, c, goUpHierarchy);
154155
}
155156
}
156-
}
157+
}

0 commit comments

Comments
 (0)