X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2FPropertyTest.java;fp=opendaylight%2Fsal%2Fapi%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2FPropertyTest.java;h=0000000000000000000000000000000000000000;hp=0828268cc9075a7c0eef2ef02f91b18286a1ef65;hb=42c32160bfd41de57189bb246fec5ffb48ed8e9e;hpb=edf5bfcee83c750853253ccfd991ba7000f5f65b diff --git a/opendaylight/sal/api/src/test/java/org/opendaylight/controller/sal/core/PropertyTest.java b/opendaylight/sal/api/src/test/java/org/opendaylight/controller/sal/core/PropertyTest.java deleted file mode 100644 index 0828268cc9..0000000000 --- a/opendaylight/sal/api/src/test/java/org/opendaylight/controller/sal/core/PropertyTest.java +++ /dev/null @@ -1,92 +0,0 @@ - -/* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ - -/** - * @file PropertyTest.java - * - * @brief Test for properties - * - */ - -package org.opendaylight.controller.sal.core; - -import org.junit.Assert; -import org.junit.Test; - -public class PropertyTest { - @Test - public void testBandWidthStr() { - Property b; - - b = new Bandwidth(Bandwidth.BWUNK); - System.out.println("b = " + b); - Assert.assertTrue(b.toString().equals("BandWidth[UnKnown]")); - - b = new Bandwidth(100L); - System.out.println("b = " + b); - Assert.assertTrue(b.toString().equals("BandWidth[100bps]")); - - b = new Bandwidth(Bandwidth.BW10Mbps); - System.out.println("b = " + b); - Assert.assertTrue(b.toString().equals("BandWidth[10Mbps]")); - - b = new Bandwidth(Bandwidth.BW100Mbps); - System.out.println("b = " + b); - Assert.assertTrue(b.toString().equals("BandWidth[100Mbps]")); - - b = new Bandwidth(Bandwidth.BW100Mbps); - System.out.println("b = " + b); - Assert.assertTrue(b.toString().equals("BandWidth[100Mbps]")); - - b = new Bandwidth(Bandwidth.BW1Gbps); - System.out.println("b = " + b); - Assert.assertTrue(b.toString().equals("BandWidth[1Gbps]")); - - b = new Bandwidth(Bandwidth.BW10Gbps); - System.out.println("b = " + b); - Assert.assertTrue(b.toString().equals("BandWidth[10Gbps]")); - - b = new Bandwidth(Bandwidth.BW40Gbps); - System.out.println("b = " + b); - Assert.assertTrue(b.toString().equals("BandWidth[40Gbps]")); - - b = new Bandwidth(Bandwidth.BW100Gbps); - System.out.println("b = " + b); - Assert.assertTrue(b.toString().equals("BandWidth[100Gbps]")); - - b = new Bandwidth(Bandwidth.BW100Gbps + 15L); - System.out.println("b = " + b); - Assert.assertTrue(b.toString().equals("BandWidth[100Gbps]")); - - b = new Bandwidth(Bandwidth.BW1Tbps); - System.out.println("b = " + b); - Assert.assertTrue(b.toString().equals("BandWidth[1Tbps]")); - } - - @Test - public void testLatencyStr() { - Property l; - - l = new Latency(Latency.LATENCYUNK); - System.out.println("l = " + l); - Assert.assertTrue(l.toString().equals("Latency[UnKnown]")); - - l = new Latency(Latency.LATENCY1ns); - System.out.println("l = " + l); - Assert.assertTrue(l.toString().equals("Latency[1nsec]")); - - l = new Latency(Latency.LATENCY1us); - System.out.println("l = " + l); - Assert.assertTrue(l.toString().equals("Latency[1usec]")); - - l = new Latency(Latency.LATENCY1ms); - System.out.println("l = " + l); - Assert.assertTrue(l.toString().equals("Latency[1msec]")); - } -}