summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/test/java/org/openecomp/sdc/versioning/errors/RequestedVersionInvalidErrorBuilderTest.java
blob: 5aa9ff8cd358f9d9e84cee01fc43392fa9f7e9de (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 RequestedVersionInvalidErrorBuilderTest {
    @Test
    public void test() {
        RequestedVersionInvalidErrorBuilder builder = new RequestedVersionInvalidErrorBuilder();
        ErrorCode build = builder.build();
        Assert.assertEquals(VersioningErrorCodes.REQUESTED_VERSION_INVALID, build.id());
        Assert.assertEquals(ErrorCategory.APPLICATION, build.category());
        Assert.assertEquals(RequestedVersionInvalidErrorBuilder.REQUESTED_VERSION_INVALID_MSG, build.message());
    }
}