summaryrefslogtreecommitdiffstats
path: root/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2022-08-24 15:11:51 +0100
committerMichael Morris <michael.morris@est.tech>2022-08-26 09:07:50 +0000
commitf156da1d07f6c2703221e604cfc410b0e5f8f4c8 (patch)
tree43a7c1272a7612466bb79ac58518c3f00b1a65b0 /openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test
parent9aef1231359278f1827d7523afd3369935b89f5b (diff)
Improve error's message readability
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Id8e9c3ce84c4f8b18a1c2fb564eb4347ce514adc Issue-ID: SDC-4143
Diffstat (limited to 'openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test')
-rw-r--r--openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/errors/VendorSoftwareProductInvalidErrorBuilderTest.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/errors/VendorSoftwareProductInvalidErrorBuilderTest.java b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/errors/VendorSoftwareProductInvalidErrorBuilderTest.java
index a54304db8e..08ab4164bd 100644
--- a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/errors/VendorSoftwareProductInvalidErrorBuilderTest.java
+++ b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/errors/VendorSoftwareProductInvalidErrorBuilderTest.java
@@ -22,29 +22,29 @@ package org.openecomp.sdc.vendorsoftwareproduct.errors;
import static org.junit.Assert.assertEquals;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import org.openecomp.sdc.common.errors.ErrorCategory;
import org.openecomp.sdc.common.errors.ErrorCode;
import org.openecomp.sdc.versioning.dao.types.Version;
-public class VendorSoftwareProductInvalidErrorBuilderTest {
+class VendorSoftwareProductInvalidErrorBuilderTest {
@Test
- public void testVendorSoftwareProductMissingServiceModelErrorBuilder() {
+ void testVendorSoftwareProductMissingServiceModelErrorBuilder() {
//when
ErrorCode errorCode = VendorSoftwareProductInvalidErrorBuilder
- .vendorSoftwareProductMissingServiceModelErrorBuilder("1",
- Version.valueOf("1.1"));
+ .vendorSoftwareProductMissingServiceModelErrorBuilder("1",
+ Version.valueOf("1.1"));
//then
assertEquals(VendorSoftwareProductErrorCodes.VSP_INVALID, errorCode.id());
assertEquals(ErrorCategory.APPLICATION, errorCode.category());
assertEquals("Vendor software product with Id 1 and version null is invalid - does not contain service model.",
- errorCode.message());
+ errorCode.message());
}
@Test
- public void testVspMissingDeploymentFlavorErrorBuilder() {
+ void testVspMissingDeploymentFlavorErrorBuilder() {
//when
ErrorCode errorCode = VendorSoftwareProductInvalidErrorBuilder.vspMissingDeploymentFlavorErrorBuilder();
@@ -52,7 +52,7 @@ public class VendorSoftwareProductInvalidErrorBuilderTest {
assertEquals(VendorSoftwareProductErrorCodes.VSP_INVALID, errorCode.id());
assertEquals(ErrorCategory.APPLICATION, errorCode.category());
assertEquals(
- "VSP has to have a minimum of one Deployment Flavor defined for being able to be instantiated.Please add a "
- + "Deployment Flavor and re-submit the VSP.", errorCode.message());
+ "VSP has to have a minimum of one Deployment Flavor defined for being able to be instantiated.Please add a "
+ + "Deployment Flavor and re-submit the VSP.", errorCode.message());
}
}