blob: b2e7c60beb6de3d098ccbf913b6ff2014cbca898 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package org.openecomp.sdc.be.model.operations.utils;
import org.junit.Before;
import org.junit.Test;
import org.openecomp.sdc.be.model.LifecycleStateEnum;
import org.openecomp.sdc.be.model.Resource;
import static org.junit.Assert.assertTrue;
public class ComponentValidationUtilsTest {
private Resource resource;
@Before
public void setup() {
resource = new Resource();
resource.setLifecycleState(LifecycleStateEnum.NOT_CERTIFIED_CHECKOUT);
resource.setLastUpdaterUserId("jh003");
resource.setIsDeleted(false);
}
@Test
public void testCanWorkOnResource() {
assertTrue (ComponentValidationUtils.canWorkOnResource(resource, "jh003"));
}
@Test
public void testCanWorkOnComponent() {
assertTrue (ComponentValidationUtils.canWorkOnComponent(resource, "jh003"));
}
}
|