1 package org.openecomp.sdc.vendorsoftwareproduct.dao.errors;
3 import static org.openecomp.sdc.vendorsoftwareproduct.errors.VendorSoftwareProductErrorCodes.FAILED_TO_CREATE_VSP;
5 import org.junit.Before;
7 import org.openecomp.sdc.common.errors.ErrorCategory;
8 import org.openecomp.sdc.common.errors.ErrorCode;
9 import org.testng.Assert;
11 public class VendorSoftwareProductCreationFailedBuilderTest {
13 private static final String VSP_ID = "testVsp1";
14 private VendorSoftwareProductCreationFailedBuilder vendorSoftwareProductCreationFailedBuilder;
18 vendorSoftwareProductCreationFailedBuilder = new VendorSoftwareProductCreationFailedBuilder(VSP_ID);
22 public void shouldReturnVspNotFoundErrorCode(){
23 ErrorCode actual = vendorSoftwareProductCreationFailedBuilder.build();
24 Assert.assertEquals(actual.category(), ErrorCategory.APPLICATION);
25 Assert.assertEquals(actual.id(), FAILED_TO_CREATE_VSP);