Fixing code formatting issues in PermissionManagerServiceTests

revert-70aa11f8
Menaka Jayawardena 7 years ago
parent e342507349
commit a9f2a0a228

@ -47,7 +47,6 @@ public class PermissionManagerServiceTest {
//For create properties to retrieve permission. //For create properties to retrieve permission.
private static final String HTTP_METHOD = "HTTP_METHOD"; private static final String HTTP_METHOD = "HTTP_METHOD";
private static final String URL = "URL"; private static final String URL = "URL";
private Permission permission; private Permission permission;
private PermissionManagerService permissionManagerService; private PermissionManagerService permissionManagerService;
@ -72,7 +71,6 @@ public class PermissionManagerServiceTest {
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());
@ -83,7 +81,6 @@ public class PermissionManagerServiceTest {
"from the permission tree.") "from the permission tree.")
public void testGetPermission() throws PermissionManagementException { public void testGetPermission() throws PermissionManagementException {
Permission permission = permissionManagerService.getPermission(createProperties()); Permission permission = permissionManagerService.getPermission(createProperties());
Assert.assertEquals(permission.getMethod(), PERMISSION_METHOD); Assert.assertEquals(permission.getMethod(), PERMISSION_METHOD);
Assert.assertEquals(permission.getName(), PERMISSION_NAME); Assert.assertEquals(permission.getName(), PERMISSION_NAME);
Assert.assertEquals(permission.getPath(), PERMISSION_PATH); Assert.assertEquals(permission.getPath(), PERMISSION_PATH);

Loading…
Cancel
Save