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 UndoCheckoutOnUnlockedEntityErrorBuilderTest {
12 UndoCheckoutOnUnlockedEntityErrorBuilder builder = new UndoCheckoutOnUnlockedEntityErrorBuilder("entityType",
14 ErrorCode build = builder.build();
15 Assert.assertEquals(VersioningErrorCodes.UNDO_CHECKOUT_ON_UNLOCKED_ENTITY, build.id());
16 Assert.assertEquals(ErrorCategory.APPLICATION, build.category());
17 Assert.assertEquals(String.format(UndoCheckoutOnUnlockedEntityErrorBuilder.UNDO_CHECKOUT_ON_UNLOCKED_ENTITY_MSG,
18 "entityType", "entityId"), build.message());