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 CheckinOnUnlockedEntityErrorBuilderTest {
13 CheckinOnUnlockedEntityErrorBuilder builder = new CheckinOnUnlockedEntityErrorBuilder("entityType",
16 ErrorCode build = builder.build();
17 Assert.assertEquals(VersioningErrorCodes.CHECKIN_ON_UNLOCKED_ENTITY, build.id());
18 Assert.assertEquals(ErrorCategory.APPLICATION, build.category());
19 Assert.assertEquals(String.format(CheckinOnUnlockedEntityErrorBuilder.CHECKIN_ON_UNLOCKED_ENTITY_MSG,
20 "entityType", "entityId"), build.message());