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