diff options
author | Jon Bratseth <bratseth@oath.com> | 2018-05-04 14:26:29 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@oath.com> | 2018-05-04 14:26:29 +0200 |
commit | 8fba29168e99e86d0a8072adcaafb84337a16eb6 (patch) | |
tree | 801101c3c410fc85e4fee445fa897eef1f411fb8 /vespajlib/src/test/java/com/yahoo/binaryprefix | |
parent | 8d41cf849b2e56bde07585bcf7ef1c1416b7b49c (diff) |
Use new junit API
Diffstat (limited to 'vespajlib/src/test/java/com/yahoo/binaryprefix')
-rw-r--r-- | vespajlib/src/test/java/com/yahoo/binaryprefix/BinaryScaledAmountTestCase.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/vespajlib/src/test/java/com/yahoo/binaryprefix/BinaryScaledAmountTestCase.java b/vespajlib/src/test/java/com/yahoo/binaryprefix/BinaryScaledAmountTestCase.java index bd5d176095e..4bfb0441668 100644 --- a/vespajlib/src/test/java/com/yahoo/binaryprefix/BinaryScaledAmountTestCase.java +++ b/vespajlib/src/test/java/com/yahoo/binaryprefix/BinaryScaledAmountTestCase.java @@ -1,12 +1,16 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.binaryprefix; -import junit.framework.TestCase; +import org.junit.Test; + +import static org.junit.Assert.assertEquals; /** * @author tonytv */ -public class BinaryScaledAmountTestCase extends TestCase { +public class BinaryScaledAmountTestCase { + + @Test public void testConversion() { BinaryScaledAmount oneMeg = new BinaryScaledAmount(1024, BinaryPrefix.kilo); @@ -21,6 +25,7 @@ public class BinaryScaledAmountTestCase extends TestCase { assertEquals(true, oneMeg.equals(v)); } + @Test public void testSymbols() { BinaryScaledAmount oneMeg = new BinaryScaledAmount(1024, BinaryPrefix.kilo); @@ -35,4 +40,5 @@ public class BinaryScaledAmountTestCase extends TestCase { } assertEquals(true, ex); } + } |