f5725e9718bba4621956560f5a4e21509fa71795
[ccsdk/sli/adaptors.git] /
1 package org.onap.ccsdk.sli.adaptors.resource.mdsal;
2
3 import static org.mockito.Mockito.mock;
4
5 import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
6
7 import junit.framework.TestCase;
8
9 public class TestOperationalResource extends TestCase {
10
11
12         public void test() throws Exception {
13
14                 RestService restService = mock(RestService.class);
15                 SvcLogicContext ctx = new SvcLogicContext();
16
17                 OperationalResource res = new OperationalResource(restService);
18
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);
28         }
29 }