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