summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/test/java
diff options
context:
space:
mode:
authorChrisC <christophe.closset@intl.att.com>2020-06-23 15:08:09 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-06-25 05:10:59 +0000
commitcbe01b54b31b0c35cfd05b52f10fa118caedc5ee (patch)
tree4d5ba2807f48d4c6dc90b646708f73acbbffd147 /catalog-be/src/test/java
parentb95aa52a9f57ec6c4d53376fc59c749621f541f9 (diff)
Fix Assert
Fix Sonar Asserts Issue-ID: SDC-3116 Signed-off-by: ChrisC <christophe.closset@intl.att.com> Change-Id: I92dcd21a3cec903792c20275be8b955c5910e566
Diffstat (limited to 'catalog-be/src/test/java')
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/auditing/impl/distribution/AuditDistributionEngineEventMigrationFactoryTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/auditing/impl/distribution/AuditDistributionEngineEventMigrationFactoryTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/auditing/impl/distribution/AuditDistributionEngineEventMigrationFactoryTest.java
index e0e267b346..943e6388b2 100644
--- a/catalog-be/src/test/java/org/openecomp/sdc/be/auditing/impl/distribution/AuditDistributionEngineEventMigrationFactoryTest.java
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/auditing/impl/distribution/AuditDistributionEngineEventMigrationFactoryTest.java
@@ -43,7 +43,7 @@ public class AuditDistributionEngineEventMigrationFactoryTest {
User user = new User("firstName", "lastName", "userId", "emailAddress", "role",
1L);
String userName = AuditDistributionEngineEventMigrationFactory.buildUserNameExtended(user);
- assertEquals(userName, "userId, firstName lastName, emailAddress, role");
+ assertEquals("userId, firstName lastName, emailAddress, role", userName);
}
@Test
@@ -51,7 +51,7 @@ public class AuditDistributionEngineEventMigrationFactoryTest {
AuditDistributionEngineEventMigrationFactory auditDistributionEngineEventMigrationFactory = new AuditDistributionEngineEventMigrationFactory(
AuditingActionEnum.ACTIVATE_SERVICE_BY_API, commonFields, distributionTopicData,
"consumerId", "apiKey", "envName", "role", "1");
- assertEquals(auditDistributionEngineEventMigrationFactory.getLogMessageParams().length, 0);
- assertEquals(auditDistributionEngineEventMigrationFactory.getLogPattern(), "");
+ assertEquals(0,auditDistributionEngineEventMigrationFactory.getLogMessageParams().length);
+ assertEquals("", auditDistributionEngineEventMigrationFactory.getLogPattern());
}
} \ No newline at end of file