diff options
author | Hailong Zhang <zhanghailong22@huawei.com> | 2019-08-31 10:43:02 +0800 |
---|---|---|
committer | Hailong Zhang <zhanghailong22@huawei.com> | 2019-08-31 10:43:02 +0800 |
commit | ba8c00de6520f97e72c3a4376cd0e78bba7e0311 (patch) | |
tree | 53fab307fb66b6ee22df227cc28f3e4cff365f29 /vnfmarket-be/vnf-sdk-marketplace/src/test | |
parent | 536eab105dd7cb8dd3954fafa8cf7bf4e7dc032b (diff) |
modify Sonar Issue
Issue-ID: VNFSDK-462
Signed-off-by: Hailong Zhang <zhanghailong22@huawei.com>
Change-Id: Icfa60df4c1f658fe28ccf5dee01ec7d6449c2b5e
Diffstat (limited to 'vnfmarket-be/vnf-sdk-marketplace/src/test')
2 files changed, 7 insertions, 7 deletions
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<FileManagerFactory>() { @Mock private FileManagerType getType() { - return FileManagerType.ftp; + return FileManagerType.FTP; } }; FileManager manager = FileManagerFactory.createFileManager(); @@ -76,7 +76,7 @@ public class FileManageTest { new MockUp<FileManagerFactory>() { @Mock private FileManagerType getType() { - return FileManagerType.http; + return FileManagerType.HTTP; } }; new MockUp<ToolUtil>() { @@ -97,7 +97,7 @@ public class FileManageTest { new MockUp<FileManagerFactory>() { @Mock private FileManagerType getType() { - return FileManagerType.http; + return FileManagerType.HTTP; } }; new MockUp<ToolUtil>() { 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(); |