2 * Copyright (c) 2014 Ericsson India Global Services Pvt Ltd. 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 * Contributor: usha.m.s@ericsson.com
10 package org.opendaylight.openflowplugin.openflow.md.core.sal.convertor;
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;
18 public class PortConvertorTest {
22 public void testPortModCommandConvertorwithAllParameters()
26 UpdatePortInputBuilder updatePortInputB = new UpdatePortInputBuilder();
27 UpdatedPortBuilder updatedPortBuilder = new UpdatedPortBuilder();
29 PortFeatures features = new PortFeatures(true, null, null, null, null, null, null, null, null, null, null,
30 null, null, null, null, null);
33 updatePortInputB.setUpdatedPort(updatedPortBuilder.build());
35 UpdatePortInput source = updatePortInputB.build();
39 // PortModInput portOut = PortConvertor.toPortModInput();