blob: b37a0e4423bc251f757b6cf072eee38cca51fd23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package org.openecomp.sdc.versioning.errors;
import org.junit.Assert;
import org.junit.Test;
import org.openecomp.sdc.common.errors.ErrorCategory;
import org.openecomp.sdc.common.errors.ErrorCode;
public class EditOnEntityLockedByOtherErrorBuilderTest {
@Test
public void test() {
EditOnEntityLockedByOtherErrorBuilder builder = new EditOnEntityLockedByOtherErrorBuilder("entityType",
"entityId", "lockingUser");
ErrorCode build = builder.build();
Assert.assertEquals(VersioningErrorCodes.EDIT_ON_ENTITY_LOCKED_BY_OTHER_USER, build.id());
Assert.assertEquals(ErrorCategory.APPLICATION, build.category());
Assert.assertEquals(String.format(EditOnEntityLockedByOtherErrorBuilder.EDIT_ON_ENTITY_LOCKED_BY_OTHER_USER_MSG,
"entityType", "entityId", "lockingUser"),build.message());
}
}
|