Bug 7800 - Implement agent RPCs for Yang notification testing
[controller.git] / opendaylight / md-sal / cds-access-api / src / test / java / org / opendaylight / controller / cluster / access / commands / ConnectClientRequestProxyV1Test.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.controller.cluster.access.commands;
9
10 import org.junit.Assert;
11 import org.junit.Test;
12 import org.opendaylight.controller.cluster.access.ABIVersion;
13 import org.opendaylight.controller.cluster.access.concepts.AbstractRequestProxyTest;
14 import org.opendaylight.controller.cluster.access.concepts.Request;
15
16 public class ConnectClientRequestProxyV1Test extends AbstractRequestProxyTest<ConnectClientRequestProxyV1> {
17     private static final ConnectClientRequest REQUEST = new ConnectClientRequest(
18             CLIENT_IDENTIFIER, ACTOR_REF, ABIVersion.TEST_PAST_VERSION, ABIVersion.TEST_FUTURE_VERSION);
19     private static final ConnectClientRequestProxyV1 OBJECT = new ConnectClientRequestProxyV1(REQUEST);
20
21     @Override
22     public ConnectClientRequestProxyV1 object() {
23         return OBJECT;
24     }
25
26     @Test
27     public void createRequestTest() {
28         final Request request = object().createRequest(CLIENT_IDENTIFIER, 0, ACTOR_REF);
29         Assert.assertNotNull(request);
30     }
31 }