9a3558920e6865e86023706c014f930eeecb7dc5
[openflowplugin.git] / openflowplugin / src / test / java / org / opendaylight / openflowplugin / openflow / md / core / sal / convertor / PortConvertorTest.java
1 /**
2  * Copyright (c) 2014 Ericsson India Global Services Pvt Ltd. 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  * Contributor: usha.m.s@ericsson.com
9  */
10 package org.opendaylight.openflowplugin.openflow.md.core.sal.convertor;
11
12 import org.junit.Test;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.port.rev130925.PortFeatures;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.port.service.rev131107.UpdatePortInput;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.port.service.rev131107.UpdatePortInputBuilder;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.port.service.rev131107.port.update.UpdatedPortBuilder;
17
18 public class PortConvertorTest {
19
20
21         @Test
22         public void testPortModCommandConvertorwithAllParameters()
23         {
24
25
26             UpdatePortInputBuilder updatePortInputB = new UpdatePortInputBuilder();
27             UpdatedPortBuilder updatedPortBuilder = new UpdatedPortBuilder();
28
29         PortFeatures features = new PortFeatures(true, null, null, null, null, null, null, null, null, null, null,
30                 null, null, null, null, null);
31
32
33             updatePortInputB.setUpdatedPort(updatedPortBuilder.build());
34
35         UpdatePortInput source = updatePortInputB.build();
36
37
38
39       // PortModInput portOut = PortConvertor.toPortModInput();
40
41
42                 return;
43
44
45
46         }
47 }