blob: 1e643fa787093fd86f69e2c3cdf66db922d5ee78 (
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
|
package org.openecomp.sdc.vendorsoftwareproduct.dao.errors;
import static org.openecomp.sdc.vendorsoftwareproduct.errors.VendorSoftwareProductErrorCodes.INVALID_EXTENSION;
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 OrchestrationTemplateFileExtensionErrorBuilderTest {
private OrchestrationTemplateFileExtensionErrorBuilder orchestrationTemplateFileExtensionErrorBuilder;
@Before
public void setUp() {
orchestrationTemplateFileExtensionErrorBuilder = new OrchestrationTemplateFileExtensionErrorBuilder();
}
@Test
public void shouldReturnInvalidExtentionErrorCode(){
ErrorCode actual = orchestrationTemplateFileExtensionErrorBuilder.build();
Assert.assertEquals(actual.category(), ErrorCategory.APPLICATION);
Assert.assertEquals(actual.id(), INVALID_EXTENSION);
}
}
|