2 * Copyright © 2020 Orange Labs, Inc. 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.transportpce.pce;
10 import org.junit.Assert;
11 import org.junit.Before;
12 import org.junit.Test;
13 import org.opendaylight.transportpce.pce.utils.PceTestData;
15 public class PceSendingPceRPCsTest {
17 private PceSendingPceRPCs pceSendingPceRPCs;
21 pceSendingPceRPCs = new PceSendingPceRPCs(PceTestData.getPCE_test1_request_54(), null);
25 public void cancelResourceReserve() {
26 pceSendingPceRPCs.cancelResourceReserve();
27 Assert.assertEquals(true, pceSendingPceRPCs.getSuccess());
31 public void pathComputationTest() throws Exception {
33 pceSendingPceRPCs.pathComputation();
38 public void checkMessage() {
39 Assert.assertNull(pceSendingPceRPCs.getMessage());
43 public void responseCodeTest() {
44 Assert.assertNull(pceSendingPceRPCs.getResponseCode());
48 public void pathComputationWithConstraintsTest() {
49 pceSendingPceRPCs.pathComputationWithConstraints(null, null);