0d4e56910206801614cdb9a3d449b04b04685b88
[transportpce.git] / olm / src / test / java / org / opendaylight / transportpce / olm / util / OtsPmHolderTest.java
1 /*
2  * Copyright © 2018 Orange Systems, 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
9 package org.opendaylight.transportpce.olm.util;
10
11 import static org.junit.jupiter.api.Assertions.assertEquals;
12
13 import org.junit.jupiter.api.Test;
14
15 public class OtsPmHolderTest {
16
17     @Test
18     void test() {
19         OtsPmHolder otspmholder0 = new OtsPmHolder("name", Double.valueOf(12), "interface");
20
21         assertEquals("name", otspmholder0.getOtsParameterName());
22         assertEquals(Double.valueOf(12), otspmholder0.getOtsParameterVal());
23         assertEquals("interface", otspmholder0.getOtsInterfaceName());
24
25         otspmholder0.setOtsParameterName("name 2");
26         otspmholder0.setOtsParameterVal(Double.valueOf(120));
27         otspmholder0.setOtsInterfaceName("interface 2");
28
29         assertEquals("name 2", otspmholder0.getOtsParameterName());
30         assertEquals(Double.valueOf(120), otspmholder0.getOtsParameterVal());
31         assertEquals("interface 2", otspmholder0.getOtsInterfaceName());
32     }
33 }