clean some compilation warnings
[transportpce.git] / servicehandler / src / test / java / org / opendaylight / transportpce / servicehandler / validation / checks / ServicehandlerCompliancyCheckTest.java
1 /*
2  * Copyright © 2018 Orange, 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.servicehandler.validation.checks;
9
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;
15
16 public class ServicehandlerCompliancyCheckTest {
17
18     public ServicehandlerCompliancyCheckTest(){
19     }
20
21     @Test
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);
27
28         Assert.assertEquals("", result.getMessage());
29         Assert.assertEquals(true, result.hasPassed());
30     }
31 }