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
9 package org.opendaylight.transportpce.pce;
11 import org.junit.Assert;
12 import org.junit.Before;
13 import org.junit.Test;
15 import org.opendaylight.transportpce.pce.utils.PceTestData;
16 import org.opendaylight.transportpce.test.AbstractTest;
18 public class PceComplianceCheckTest extends AbstractTest {
27 public void testCheckFalse() {
29 PceComplianceCheck.check(PceTestData.getEmptyPCERequest()).hasPassed());
33 public void testCheckTrue() {
35 PceComplianceCheck.check(PceTestData.getEmptyPCERequestServiceNameWithRequestId()).hasPassed());
39 public void testCheckFalseWihtoutRequestID() {
41 PceComplianceCheck.check(PceTestData.getEmptyPCERequestServiceNameWithOutRequestId()).hasPassed());