blob: 75e6b1f6df6eeb8fb770e767e6f17bf7cf4f963c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package org.openecomp.sdc.vendorsoftwareproduct.dao.errors;
import static org.openecomp.sdc.vendorsoftwareproduct.errors.VendorSoftwareProductErrorCodes.VSP_NOT_FOUND;
import org.junit.Before;
import org.junit.Test;
import org.openecomp.sdc.common.errors.ErrorCategory;
import org.openecomp.sdc.common.errors.ErrorCode;
import org.testng.Assert;
public class VendorSoftwareProductNotFoundErrorBuilderTest {
private static final String VSP_ID = "testVsp1";
private VendorSoftwareProductNotFoundErrorBuilder vendorSoftwareProductNotFoundErrorBuilder;
@Before
public void setUp() {
vendorSoftwareProductNotFoundErrorBuilder = new VendorSoftwareProductNotFoundErrorBuilder(VSP_ID);
}
@Test
public void shouldReturnVspNotFoundErrorCode(){
ErrorCode actual = vendorSoftwareProductNotFoundErrorBuilder.build();
Assert.assertEquals(actual.category(), ErrorCategory.APPLICATION);
Assert.assertEquals(actual.id(), VSP_NOT_FOUND);
}
}
|