use of java.nio.file.attribute.UserPrincipalNotFoundException in project jimfs by google.
the class UserLookupServiceTest method testServiceNotSupportingGroups.
@Test
public void testServiceNotSupportingGroups() throws IOException {
UserPrincipalLookupService service = new UserLookupService(false);
try {
service.lookupPrincipalByGroupName("group");
fail();
} catch (UserPrincipalNotFoundException expected) {
assertThat(expected.getName()).isEqualTo("group");
}
}
use of java.nio.file.attribute.UserPrincipalNotFoundException in project j2objc by google.
the class UserPrincipalNotFoundExceptionTest method testGetters.
@Test
public void testGetters() throws Exception {
final String name = "foobar";
UserPrincipalNotFoundException upnfException = new UserPrincipalNotFoundException(name);
assertEquals(name, upnfException.getName());
}
Aggregations