blob: 0695cab76a4a7dec410e81e9ee23bce7d6e4111c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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 SubmitLockedEntityNotAllowedErrorBuilderTest {
@Test
public void test() {
SubmitLockedEntityNotAllowedErrorBuilder builder = new SubmitLockedEntityNotAllowedErrorBuilder("entityType",
"entityId", "lockingUser");
ErrorCode build = builder.build();
Assert.assertEquals(VersioningErrorCodes.SUBMIT_LOCKED_ENTITY_NOT_ALLOWED, build.id());
Assert.assertEquals(ErrorCategory.APPLICATION, build.category());
Assert.assertEquals(String.format(SubmitLockedEntityNotAllowedErrorBuilder.SUBMIT_LOCKED_ENTITY_NOT_ALLOWED_MSG,
"entityType", "entityId", "lockingUser"), build.message());
}
}
|