2 * Copyright © 2018 Orange, 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.servicehandler.validation.checks;
10 import org.junit.Assert;
11 import org.junit.Test;
12 import org.opendaylight.yang.gen.v1.http.org.openroadm.common.service.types.rev161014.ConnectionType;
13 import org.opendaylight.yang.gen.v1.http.org.openroadm.common.service.types.rev161014.RpcActions;
14 import org.opendaylight.yang.gen.v1.http.org.openroadm.common.service.types.rev161014.sdnc.request.header.SdncRequestHeaderBuilder;
16 public class ServicehandlerCompliancyCheckTest {
18 public ServicehandlerCompliancyCheckTest(){
22 public void checkFalseSdncRequest() {
23 ComplianceCheckResult result = ServicehandlerCompliancyCheck.check("service 1",
24 new SdncRequestHeaderBuilder().setRequestId("1").setRequestSystemId("1").setNotificationUrl("1")
25 .setRpcAction(RpcActions.ServiceCreate).build(),
26 ConnectionType.Service,RpcActions.ServiceCreate, true, false);
28 Assert.assertEquals("", result.getMessage());
29 Assert.assertEquals(true, result.hasPassed());