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 CheckoutOnLockedEntityErrorBuilderTest {
12 CheckoutOnLockedEntityErrorBuilder builder = new CheckoutOnLockedEntityErrorBuilder("entityType",
13 "entityId", "lockingUser");
15 ErrorCode build = builder.build();
16 Assert.assertEquals(VersioningErrorCodes.CHECKOT_ON_LOCKED_ENTITY, build.id() );
17 Assert.assertEquals(ErrorCategory.APPLICATION, build.category() );
18 Assert.assertEquals(String.format(CheckoutOnLockedEntityErrorBuilder.CHECKOT_ON_LOCKED_ENTITY_MSG,
19 "entityType", "entityId", "lockingUser") , build.message());