Binding v2 runtime - adapters - impl - operations
[mdsal.git] / binding2 / mdsal-binding2-dom-adapter / src / test / java / org / opendaylight / mdsal / binding / javav2 / dom / adapter / impl / operation / invoker / ClassBaseOperationServiceInvokerTest.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies s.r.o. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.mdsal.binding.javav2.dom.adapter.impl.operation.invoker;
9
10 import static org.junit.Assert.assertNotNull;
11
12 import org.junit.Test;
13 import org.opendaylight.mdsal.binding.javav2.spec.base.Action;
14 import org.opendaylight.mdsal.binding.javav2.spec.base.Rpc;
15 import org.opendaylight.mdsal.binding.javav2.spec.base.TreeNode;
16
17 public class ClassBaseOperationServiceInvokerTest {
18
19     @Test
20     public void rpcTest() {
21         final OperationServiceInvoker serviceInvoker = ClassBasedOperationServiceInvoker.instanceFor(DummyRpc.class);
22         assertNotNull(serviceInvoker);
23     }
24
25     @Test
26     public void actionTest() {
27         final OperationServiceInvoker serviceInvoker = ClassBasedOperationServiceInvoker.instanceFor(DummyAction.class);
28         assertNotNull(serviceInvoker);
29     }
30
31     @SuppressWarnings("rawtypes")
32     private interface DummyRpc extends Rpc, TreeNode {
33     }
34
35     @SuppressWarnings("rawtypes")
36     private interface DummyAction extends Action, TreeNode {
37     }
38 }