1 package jtest.org.onap.ccsdk.sli.adaptors.ra;
3 import java.util.HashMap;
5 import org.junit.FixMethodOrder;
7 import org.junit.runner.RunWith;
8 import org.junit.runners.MethodSorters;
9 import org.onap.ccsdk.sli.adaptors.ra.ResourceLockNode;
10 import org.slf4j.Logger;
11 import org.slf4j.LoggerFactory;
12 import org.springframework.beans.factory.annotation.Autowired;
13 import org.springframework.test.context.ContextConfiguration;
14 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
16 @RunWith(SpringJUnit4ClassRunner.class)
17 @ContextConfiguration(locations = { "classpath:test-context.xml" })
18 @FixMethodOrder(MethodSorters.NAME_ASCENDING)
19 public class TestResourceLockNode {
21 @SuppressWarnings("unused")
22 private static final Logger log = LoggerFactory.getLogger(TestResourceLockNode.class);
25 private ResourceLockNode resourceLockNode;
28 public void test1() throws Exception {
29 Map<String, String> paramMap = new HashMap<>();
30 paramMap.put("resource-name", "test-resource-1");
32 resourceLockNode.lockResource(paramMap, null);
33 resourceLockNode.unlockResource(paramMap, null);