@Test void testUnexpectedPermissionException() { Permission permission = mock(Permission.class); when(permission.toString()).thenReturn("test"); assertEquals( "Illegal permission 'test'", new UnexpectedPermissionException(permission).getMessage()); }
public <E extends Enum> UnexpectedPermissionException(Permission permission) { this.permission = requireNonNull(permission); }
UnexpectedPermissionException extends RuntimeException { public <E extends Enum> UnexpectedPermissionException(Permission permission) { this.permission = requireNonNull(permission); } }
UnexpectedPermissionException extends RuntimeException { public <E extends Enum> UnexpectedPermissionException(Permission permission) { this.permission = requireNonNull(permission); } <E extends Enum> UnexpectedPermissionException(Permission permission); }
UnexpectedPermissionException extends RuntimeException { public <E extends Enum> UnexpectedPermissionException(Permission permission) { this.permission = requireNonNull(permission); } <E extends Enum> UnexpectedPermissionException(Permission permission); @Override String getMessage(); }
UnexpectedPermissionException extends RuntimeException { public <E extends Enum> UnexpectedPermissionException(Permission permission) { this.permission = requireNonNull(permission); } <E extends Enum> UnexpectedPermissionException(Permission permission); @Override String getMessage();  }