2 * Copyright © 2018 Orange Systems, 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.olm.util;
11 import org.junit.Assert;
12 import org.junit.Test;
14 public class OtsPmHolderTest {
18 OtsPmHolder otspmholder0 = new OtsPmHolder("name", Double.valueOf(12), "interface");
20 Assert.assertEquals("name", otspmholder0.getOtsParameterName());
21 Assert.assertEquals(Double.valueOf(12), otspmholder0.getOtsParameterVal());
22 Assert.assertEquals("interface", otspmholder0.getOtsInterfaceName());
24 otspmholder0.setOtsParameterName("name 2");
25 otspmholder0.setOtsParameterVal(Double.valueOf(120));
26 otspmholder0.setOtsInterfaceName("interface 2");
28 Assert.assertEquals("name 2", otspmholder0.getOtsParameterName());
29 Assert.assertEquals(Double.valueOf(120), otspmholder0.getOtsParameterVal());
30 Assert.assertEquals("interface 2", otspmholder0.getOtsInterfaceName());