1 package org.openecomp.sdc.versioning.errors;
4 import org.junit.Assert;
6 import org.openecomp.sdc.common.errors.ErrorCategory;
7 import org.openecomp.sdc.common.errors.ErrorCode;
9 public class SubmitLockedEntityNotAllowedErrorBuilderTest {
12 SubmitLockedEntityNotAllowedErrorBuilder builder = new SubmitLockedEntityNotAllowedErrorBuilder("entityType",
13 "entityId", "lockingUser");
15 ErrorCode build = builder.build();
16 Assert.assertEquals(VersioningErrorCodes.SUBMIT_LOCKED_ENTITY_NOT_ALLOWED, build.id());
17 Assert.assertEquals(ErrorCategory.APPLICATION, build.category());
18 Assert.assertEquals(String.format(SubmitLockedEntityNotAllowedErrorBuilder.SUBMIT_LOCKED_ENTITY_NOT_ALLOWED_MSG,
19 "entityType", "entityId", "lockingUser"), build.message());