2 * Copyright (c) 2017 Pantheon Technologies s.r.o. and others. All rights reserved.
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
8 package org.opendaylight.mdsal.binding.javav2.dom.adapter.impl.operation.invoker;
10 import static org.junit.Assert.assertNotNull;
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;
17 public class ClassBaseOperationServiceInvokerTest {
20 public void rpcTest() {
21 final OperationServiceInvoker serviceInvoker = ClassBasedOperationServiceInvoker.instanceFor(DummyRpc.class);
22 assertNotNull(serviceInvoker);
26 public void actionTest() {
27 final OperationServiceInvoker serviceInvoker = ClassBasedOperationServiceInvoker.instanceFor(DummyAction.class);
28 assertNotNull(serviceInvoker);
31 @SuppressWarnings("rawtypes")
32 private interface DummyRpc extends Rpc, TreeNode {
35 @SuppressWarnings("rawtypes")
36 private interface DummyAction extends Action, TreeNode {