@Test void testGetMessage() { Role role = mock(Role.class); when(role.getId()).thenReturn("test"); when(role.getName()).thenReturn("test_VIEWER"); CircularRoleHierarchyException ex = new CircularRoleHierarchyException(role); assertEquals("id:test,name:test_VIEWER", ex.getMessage()); }
@Override public String getMessage() { return format("id:%s,name:%s", id, name); }
CircularRoleHierarchyException extends BadRequestException { @Override public String getMessage() { return format("id:%s,name:%s", id, name); } }
CircularRoleHierarchyException extends BadRequestException { @Override public String getMessage() { return format("id:%s,name:%s", id, name); } CircularRoleHierarchyException(Role role); }
CircularRoleHierarchyException extends BadRequestException { @Override public String getMessage() { return format("id:%s,name:%s", id, name); } CircularRoleHierarchyException(Role role); @Override String getMessage(); }
CircularRoleHierarchyException extends BadRequestException { @Override public String getMessage() { return format("id:%s,name:%s", id, name); } CircularRoleHierarchyException(Role role); @Override String getMessage();  }