aboutsummaryrefslogtreecommitdiffstats
path: root/yolean
diff options
context:
space:
mode:
Diffstat (limited to 'yolean')
-rw-r--r--yolean/src/test/java/com/yahoo/yolean/ExceptionsTestCase.java11
-rw-r--r--yolean/src/test/java/com/yahoo/yolean/system/CatchSigTermTestCase.java11
2 files changed, 11 insertions, 11 deletions
diff --git a/yolean/src/test/java/com/yahoo/yolean/ExceptionsTestCase.java b/yolean/src/test/java/com/yahoo/yolean/ExceptionsTestCase.java
index 925371a5f91..db605609926 100644
--- a/yolean/src/test/java/com/yahoo/yolean/ExceptionsTestCase.java
+++ b/yolean/src/test/java/com/yahoo/yolean/ExceptionsTestCase.java
@@ -1,15 +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.yolean;
+import org.junit.Test;
+
+import static org.junit.Assert.assertEquals;
+
/**
* @author bratseth
*/
-public class ExceptionsTestCase extends junit.framework.TestCase {
-
- public ExceptionsTestCase(String name) {
- super(name);
- }
+public class ExceptionsTestCase {
+ @Test
public void testToMessageStrings() {
assertEquals("Blah",Exceptions.toMessageString(new Exception("Blah")));
assertEquals("Blah", Exceptions.toMessageString(new Exception(new Exception("Blah"))));
diff --git a/yolean/src/test/java/com/yahoo/yolean/system/CatchSigTermTestCase.java b/yolean/src/test/java/com/yahoo/yolean/system/CatchSigTermTestCase.java
index 64d1546a61e..056db2d3592 100644
--- a/yolean/src/test/java/com/yahoo/yolean/system/CatchSigTermTestCase.java
+++ b/yolean/src/test/java/com/yahoo/yolean/system/CatchSigTermTestCase.java
@@ -1,19 +1,18 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.yolean.system;
-import com.yahoo.yolean.system.CatchSigTerm;
+import org.junit.Test;
+
import java.util.concurrent.atomic.AtomicBoolean;
/**
* @author arnej27959
*/
-public class CatchSigTermTestCase extends junit.framework.TestCase {
-
- public CatchSigTermTestCase(String name) {
- super(name);
- }
+public class CatchSigTermTestCase {
+ @Test
public void testThatSetupCompiles() {
CatchSigTerm.setup(new AtomicBoolean(false));
}
+
}