Minor code formatting.

4.x.x
Menaka Jayawardena 7 years ago
parent b1aba20200
commit 52b4b46e7c

@ -69,12 +69,10 @@ public class PermissionManagerServiceTest {
@Test (description = "Create a new permission in the permission tree.") @Test (description = "Create a new permission in the permission tree.")
public void testCreatePermission() { public void testCreatePermission() {
try { try {
PowerMockito.mockStatic(PermissionUtils.class); PowerMockito.mockStatic(PermissionUtils.class);
PowerMockito.when(PermissionUtils.putPermission(permission)).thenReturn(true); PowerMockito.when(PermissionUtils.putPermission(permission)).thenReturn(true);
Assert.assertTrue(permissionManagerService.addPermission(permission)); Assert.assertTrue(permissionManagerService.addPermission(permission));
} catch (PermissionManagementException e) { } catch (PermissionManagementException e) {
log.error("Error creating permission " + e.getErrorMessage()); log.error("Error creating permission " + e.getErrorMessage());
} }

Loading…
Cancel
Save