1 package org.openecomp.sdc.vendorsoftwareproduct.dao.errors;
3 import static org.openecomp.sdc.vendorsoftwareproduct.errors.VendorSoftwareProductErrorCodes.VSP_NOT_FOUND;
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 VendorSoftwareProductNotFoundErrorBuilderTest {
13 private static final String VSP_ID = "testVsp1";
14 private VendorSoftwareProductNotFoundErrorBuilder vendorSoftwareProductNotFoundErrorBuilder;
18 vendorSoftwareProductNotFoundErrorBuilder = new VendorSoftwareProductNotFoundErrorBuilder(VSP_ID);
22 public void shouldReturnVspNotFoundErrorCode(){
23 ErrorCode actual = vendorSoftwareProductNotFoundErrorBuilder.build();
24 Assert.assertEquals(actual.category(), ErrorCategory.APPLICATION);
25 Assert.assertEquals(actual.id(), VSP_NOT_FOUND);