String constants were changed to static final.

revert-70aa11f8
Menaka Jayawardena 7 years ago
parent ebe2a7bd6b
commit c7779b63c0

@ -38,17 +38,17 @@ import static org.mockito.MockitoAnnotations.initMocks;
@PrepareForTest(PermissionUtils.class) @PrepareForTest(PermissionUtils.class)
public class PermissionManagerServiceTest { public class PermissionManagerServiceTest {
private Permission permission; private static final Log log = LogFactory.getLog(PermissionManagerServiceTest.class);;
private Log log; private static final String PERMISSION_URL = "permission/admin/device-mgt/test/testPermission";
private String PERMISSION_URL = "permission/admin/device-mgt/test/testPermission"; private static final String PERMISSION_PATH = "permission/admin/device-mgt/test/testPermission";
private String PERMISSION_PATH = "permission/admin/device-mgt/test/testPermission"; private static final String PERMISSION_METHOD = "ui.execute";
private String PERMISSION_METHOD = "ui.execute"; private static final String PERMISSION_NAME = "Test Permission";
private String PERMISSION_NAME = "Test Permission";
//For create properties to retrieve permission. //For create properties to retrieve permission.
private String HTTP_METHOD = "HTTP_METHOD"; private static final String HTTP_METHOD = "HTTP_METHOD";
private String URL = "URL"; private static final String URL = "URL";
private Permission permission;
private PermissionManagerService permissionManagerService; private PermissionManagerService permissionManagerService;
@ObjectFactory @ObjectFactory
@ -59,7 +59,6 @@ public class PermissionManagerServiceTest {
@BeforeClass @BeforeClass
public void init() throws RegistryException { public void init() throws RegistryException {
initMocks(this); initMocks(this);
log = LogFactory.getLog(PermissionManagerServiceTest.class);
permissionManagerService = PermissionManagerServiceImpl.getInstance(); permissionManagerService = PermissionManagerServiceImpl.getInstance();
this.permission = new Permission(); this.permission = new Permission();
permission.setName(PERMISSION_NAME); permission.setName(PERMISSION_NAME);

Loading…
Cancel
Save