a8f4d9483ea3b720abf81241d5b50325b78577f1
[ccsdk/sli/adaptors.git] /
1 package org.onap.ccsdk.sli.adaptors.resource.mdsal;
2
3 import junit.framework.TestCase;
4
5 import static org.mockito.Mockito.mock;
6
7 import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
8
9 public class TestConfigResource extends TestCase {
10
11         public void test() throws Exception {
12
13                 RestService restService = mock(RestService.class);
14                 SvcLogicContext ctx = new SvcLogicContext();
15
16                 ConfigResource res = new ConfigResource(restService);
17
18                 res.delete("my-resource", null, ctx);
19                 res.notify("my-resource", "action", "key", ctx);
20                 res.query("my-resource", false, "my-select", "mykey", "pfx", null, ctx);
21                 res.release("my-resource", "mykey", ctx);
22                 res.reserve("my-resource", "my-select", "mykey", "pfx", ctx);
23                 res.exists("my-resource", "mykey", "pfx", ctx);
24                 res.isAvailable("my-resource", "mykey", "pfx", ctx);
25                 res.save("resource", false, false, null, null, null, ctx);
26                 res.update("my-resource", "mykey", null, "pfx", ctx);
27         }
28
29 }