adding some pce unit tests and remove ignore from olm class
[transportpce.git] / pce / src / test / java / org / opendaylight / transportpce / pce / PceSendingPceRPCsTest.java
1 /*
2  * Copyright © 2020 Orange Labs, Inc. 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.transportpce.pce;
9
10 import org.junit.Assert;
11 import org.junit.Before;
12 import org.junit.Test;
13 import org.opendaylight.transportpce.pce.utils.PceTestData;
14
15 public class PceSendingPceRPCsTest {
16
17     private PceSendingPceRPCs pceSendingPceRPCs;
18
19     @Before
20     public void setUp() {
21         pceSendingPceRPCs = new PceSendingPceRPCs(PceTestData.getPCE_test1_request_54(), null);
22     }
23
24     @Test
25     public void cancelResourceReserve() {
26         pceSendingPceRPCs.cancelResourceReserve();
27         Assert.assertEquals(true, pceSendingPceRPCs.getSuccess());
28     }
29
30     @Test
31     public void pathComputationTest() throws Exception {
32
33         pceSendingPceRPCs.pathComputation();
34
35     }
36
37     @Test
38     public void checkMessage() {
39         Assert.assertNull(pceSendingPceRPCs.getMessage());
40     }
41
42     @Test
43     public void responseCodeTest() {
44         Assert.assertNull(pceSendingPceRPCs.getResponseCode());
45     }
46
47     @Test
48     public void pathComputationWithConstraintsTest() {
49         pceSendingPceRPCs.pathComputationWithConstraints(null, null);
50     }
51 }