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 static org.junit.jupiter.api.Assertions.assertFalse;
12 import static org.junit.jupiter.api.Assertions.assertTrue;
14 import org.junit.jupiter.api.Test;
15 import org.opendaylight.transportpce.pce.utils.PceTestData;
16 import org.opendaylight.transportpce.test.AbstractTest;
18 public class PceComplianceCheckTest extends AbstractTest {
21 void testCheckFalse() {
22 assertFalse(PceComplianceCheck.check(PceTestData.getEmptyPCERequest()).hasPassed());
26 void testCheckTrue() {
27 assertTrue(PceComplianceCheck.check(PceTestData.getEmptyPCERequestServiceNameWithRequestId()).hasPassed());
31 void testCheckFalseWihtoutRequestID() {
32 assertFalse(PceComplianceCheck.check(PceTestData.getEmptyPCERequestServiceNameWithOutRequestId()).hasPassed());