use of org.dcache.auth.attributes.HomeDirectory in project dcache by dCache.
the class OmniSessionPluginTest method shouldSuppressExistingAttributes.
@Test
public void shouldSuppressExistingAttributes() throws Exception {
given(aPlugin().thatReturns(new RootDirectory("/"), new HomeDirectory("/home")));
whenCalledWith(aSetOfPrincipals().withUsername("paul"), new RootDirectory("/root-dir"));
assertThat(attributes, containsInAnyOrder(new RootDirectory("/root-dir"), new HomeDirectory("/home")));
}
Aggregations