From 7312f8968060ef3fc9b1e64ac74dd4144ff2bf74 Mon Sep 17 00:00:00 2001 From: Bjørn Christian Seime Date: Fri, 29 Jul 2022 14:26:02 +0200 Subject: Convert clustercontroller-core to junit5 --- .../clustercontroller/core/ContentClusterHtmlRendererTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ContentClusterHtmlRendererTest.java') diff --git a/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ContentClusterHtmlRendererTest.java b/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ContentClusterHtmlRendererTest.java index ff1c5b0bb17..d43a3e13c6a 100644 --- a/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ContentClusterHtmlRendererTest.java +++ b/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ContentClusterHtmlRendererTest.java @@ -7,8 +7,8 @@ import com.yahoo.vespa.clustercontroller.core.hostinfo.HostInfo; import com.yahoo.vespa.clustercontroller.core.status.statuspage.VdsClusterHtmlRenderer; import org.codehaus.jettison.json.JSONException; import org.codehaus.jettison.json.JSONWriter; -import org.junit.Before; -import org.junit.Test; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; import java.io.StringWriter; import java.io.Writer; @@ -27,7 +27,7 @@ public class ContentClusterHtmlRendererTest { private final TreeMap distributorNodeInfoByIndex = new TreeMap<>(); private String result; - @Before + @BeforeEach public void before() throws JSONException { final ClusterStateBundle stateBundle = ClusterStateBundle.ofBaselineOnly( AnnotatedClusterState.withoutAnnotations( @@ -71,7 +71,7 @@ public class ContentClusterHtmlRendererTest { } @Test - public void testVtagRendering() { + void testVtagRendering() { // 9 distribution nodes should have green tag on release1. assertThat(result.split("release1").length, is(10)); // 1 distribution node should have warning on release1bad. -- cgit v1.2.3