blob: e648663ceb9e322e1f28c0aa24175bd87f58ea09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package org.openecomp.sdc.versioning.errors;
import org.junit.Assert;
import org.junit.Test;
import org.openecomp.sdc.common.errors.ErrorCategory;
import org.openecomp.sdc.common.errors.ErrorCode;
public class RevisionIdNotFoundErrorBuilderTest {
@Test
public void test() {
RevisionIdNotFoundErrorBuilder builder = new RevisionIdNotFoundErrorBuilder();
ErrorCode build = builder.build();
Assert.assertEquals(VersioningErrorCodes.MANDATORY_FIELD_REVISION_ID_MISSING, build.id());
Assert.assertEquals(ErrorCategory.APPLICATION, build.category());
Assert.assertEquals(RevisionIdNotFoundErrorBuilder.REVISION_ID_NOT_FOUND_MSG, build.message());
}
}
|