1e643fa787093fd86f69e2c3cdf66db922d5ee78
[sdc.git] /
1 package org.openecomp.sdc.vendorsoftwareproduct.dao.errors;
2
3 import static org.openecomp.sdc.vendorsoftwareproduct.errors.VendorSoftwareProductErrorCodes.INVALID_EXTENSION;
4
5 import org.junit.Before;
6 import org.junit.Test;
7 import org.openecomp.sdc.common.errors.ErrorCategory;
8 import org.openecomp.sdc.common.errors.ErrorCode;
9 import org.testng.Assert;
10
11 public class OrchestrationTemplateFileExtensionErrorBuilderTest {
12
13     private OrchestrationTemplateFileExtensionErrorBuilder orchestrationTemplateFileExtensionErrorBuilder;
14
15     @Before
16     public void setUp() {
17         orchestrationTemplateFileExtensionErrorBuilder = new OrchestrationTemplateFileExtensionErrorBuilder();
18     }
19
20     @Test
21     public void shouldReturnInvalidExtentionErrorCode(){
22         ErrorCode actual = orchestrationTemplateFileExtensionErrorBuilder.build();
23         Assert.assertEquals(actual.category(), ErrorCategory.APPLICATION);
24         Assert.assertEquals(actual.id(), INVALID_EXTENSION);
25     }
26 }