fix sonar issue: PMD.AvoidDuplicateLiterals
authorm.dalakov <m.dalakov@samsung.com>
Mon, 25 Sep 2017 11:21:44 +0000 (14:21 +0300)
committerm.dalakov <m.dalakov@samsung.com>
Mon, 25 Sep 2017 11:21:44 +0000 (14:21 +0300)
servers/commons/src/main/java/com/samsung/commons/model/Notification.java
servers/dsm/src/test/java/com/samsung/dsm/controller/AccountControllerTest.java
servers/dsm/src/test/java/com/samsung/dsm/controller/AdminControllerTest.java
servers/dsm/src/test/java/com/samsung/dsm/controller/DashboardDevicesControllerTest.java
servers/dsm/src/test/java/com/samsung/dsm/controller/HomeControllerTest.java
servers/dsm/src/test/java/com/samsung/dsm/rest/DeviceApiTest.java
servers/dsm/src/test/java/com/samsung/dsm/rest/PolicyApiTest.java

index f834c07..870e915 100644 (file)
@@ -17,6 +17,7 @@ import javax.validation.constraints.NotNull;
  * @version 1.0
  * @since 2017-07-18
  */
+@SuppressWarnings("PMD.AvoidDuplicateLiterals")
 public class Notification {
 
     /**
index 9cf1368..75dfbf5 100644 (file)
@@ -35,6 +35,7 @@ import org.springframework.web.context.WebApplicationContext;
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(locations = { "classpath:root-context.xml" })
 @WebAppConfiguration
+@SuppressWarnings("PMD.AvoidDuplicateLiterals")
 public class AccountControllerTest {
 
     private static final String PASSWORD = "123456";
index 3fad147..39f7e90 100644 (file)
@@ -47,6 +47,7 @@ import com.samsung.dsm.security.authentication.PasswordEncoder;
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(locations = { "classpath:root-context.xml" })
 @WebAppConfiguration
+@SuppressWarnings("PMD.AvoidDuplicateLiterals")
 public class AdminControllerTest {
 
     private static final String PASSWORD = "123456";
index d8b91f5..c48e493 100644 (file)
@@ -54,6 +54,7 @@ import com.samsung.dsm.model.view.ViewDevice;
 @ContextConfiguration(locations = { "classpath:root-context.xml" })
 @WebAppConfiguration
 @Transactional
+@SuppressWarnings("PMD.AvoidDuplicateLiterals")
 public class DashboardDevicesControllerTest {
 
     private static final String DASHBOARD_DEVICES = "/dashboard/devices";
index 11769fb..4d0a919 100644 (file)
@@ -27,6 +27,7 @@ import org.springframework.web.context.WebApplicationContext;
 @ContextConfiguration(locations = { "classpath:root-context.xml" })
 @WebAppConfiguration
 @DirtiesContext(classMode = AFTER_EACH_TEST_METHOD)
+@SuppressWarnings("PMD.AvoidDuplicateLiterals")
 public class HomeControllerTest {
 
     @Autowired
index ae829a4..f6cc59e 100644 (file)
@@ -37,6 +37,7 @@ import com.samsung.dsm.utils.JsonUtils;
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(locations = { "classpath:root-context.xml" })
 @WebAppConfiguration
+@SuppressWarnings("PMD.AvoidDuplicateLiterals")
 public class DeviceApiTest {
 
     private static final String PARENT_UUID = "parentUuid";
index d3ce5db..4d599f7 100644 (file)
@@ -37,6 +37,7 @@ import com.samsung.dsm.utils.JsonUtils;
 @RunWith(SpringJUnit4ClassRunner.class)
 @ContextConfiguration(locations = { "classpath:root-context.xml" })
 @WebAppConfiguration
+@SuppressWarnings("PMD.AvoidDuplicateLiterals")
 public class PolicyApiTest {
 
     private static final String ROOT_URL = "/restapi";