From ba8c00de6520f97e72c3a4376cd0e78bba7e0311 Mon Sep 17 00:00:00 2001 From: Hailong Zhang Date: Sat, 31 Aug 2019 10:43:02 +0800 Subject: modify Sonar Issue Issue-ID: VNFSDK-462 Signed-off-by: Hailong Zhang Change-Id: Icfa60df4c1f658fe28ccf5dee01ec7d6449c2b5e --- .../org/onap/vnfsdk/marketplace/filemanage/FileManageTest.java | 6 +++--- .../org/onap/vnfsdk/marketplace/resource/PackageResourceTest.java | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'vnfmarket-be/vnf-sdk-marketplace/src/test') diff --git a/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/filemanage/FileManageTest.java b/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/filemanage/FileManageTest.java index 901251c3..e04af4fa 100644 --- a/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/filemanage/FileManageTest.java +++ b/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/filemanage/FileManageTest.java @@ -39,7 +39,7 @@ public class FileManageTest { new MockUp() { @Mock private FileManagerType getType() { - return FileManagerType.ftp; + return FileManagerType.FTP; } }; FileManager manager = FileManagerFactory.createFileManager(); @@ -76,7 +76,7 @@ public class FileManageTest { new MockUp() { @Mock private FileManagerType getType() { - return FileManagerType.http; + return FileManagerType.HTTP; } }; new MockUp() { @@ -97,7 +97,7 @@ public class FileManageTest { new MockUp() { @Mock private FileManagerType getType() { - return FileManagerType.http; + return FileManagerType.HTTP; } }; new MockUp() { diff --git a/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/resource/PackageResourceTest.java b/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/resource/PackageResourceTest.java index 448db014..64df9fa9 100644 --- a/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/resource/PackageResourceTest.java +++ b/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/resource/PackageResourceTest.java @@ -1389,9 +1389,9 @@ public class PackageResourceTest { vnfPackageObj.setVnfPackageUrl("vnfPackageUrl"); vnfPackageObj.setVnfd("vnfd"); vnfPackageObj.setVersion("1"); - vnfPackageObj.setUsageState(EnumUsageState.NotInUse); + vnfPackageObj.setUsageState(EnumUsageState.NOTINUSE); vnfPackageObj.setProvider("huawei"); - vnfPackageObj.setOperationalState(EnumOperationalState.Enabled); + vnfPackageObj.setOperationalState(EnumOperationalState.ENABLED); vnfPackageObj.setName("vnf"); vnfPackageObj.setDeletionPending("pending"); @@ -1404,11 +1404,11 @@ public class PackageResourceTest { res = vnfPackageObj.getVersion(); assertEquals(res, "1"); EnumUsageState state = vnfPackageObj.getUsageState(); - assertEquals(state, EnumUsageState.NotInUse); + assertEquals(state, EnumUsageState.NOTINUSE); res = vnfPackageObj.getProvider(); assertEquals(res, "huawei"); EnumOperationalState operState = vnfPackageObj.getOperationalState(); - assertEquals(operState, EnumOperationalState.Enabled); + assertEquals(operState, EnumOperationalState.ENABLED); res = vnfPackageObj.getName(); assertEquals(res, "vnf"); res = vnfPackageObj.getDeletionPending(); -- cgit 1.2.3-korg