1 package org.onap.ccsdk.sli.adaptors.resource.mdsal;
3 import static org.mockito.Mockito.mock;
5 import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
7 import junit.framework.TestCase;
9 public class TestOperationalResource extends TestCase {
12 public void test() throws Exception {
14 RestService restService = mock(RestService.class);
15 SvcLogicContext ctx = new SvcLogicContext();
17 OperationalResource res = new OperationalResource(restService);
19 res.delete("my-resource", null, ctx);
20 res.notify("my-resource", "action", "key", ctx);
21 res.query("my-resource", false, "my-select", "mykey", "pfx", null, ctx);
22 res.release("my-resource", "mykey", ctx);
23 res.reserve("my-resource", "my-select", "mykey", "pfx", ctx);
24 res.exists("my-resource", "mykey", "pfx", ctx);
25 res.isAvailable("my-resource", "mykey", "pfx", ctx);
26 res.save("resource", false, false, null, null, null, ctx);
27 res.update("my-resource", "mykey", null, "pfx", ctx);