Migrate to Junit 5 Jupiter
[lttng-ust-java-tests.git] / lttng-ust-java-tests-common / src / test / java / org / lttng / ust / agent / context / ContextRegistrationIT.java
index 10327b07657cf1d6634e8319c0933d7f92e6f399..6174d9449f780551b65d71fc45db9ede5449d6f9 100644 (file)
 
 package org.lttng.ust.agent.context;
 
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
 
 import java.io.IOException;
 
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.lttng.ust.agent.utils.TestPrintRunner;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.extension.ExtendWith;
+import org.junit.jupiter.api.BeforeEach;
+import org.lttng.ust.agent.utils.TestPrintExtension;
 
 /**
  * Generic tests related to the context retrieval mechanisms.
  *
  * @author Alexandre Montplaisir
  */
-@RunWith(TestPrintRunner.class)
+@ExtendWith(TestPrintExtension.class)
 public class ContextRegistrationIT {
 
     private ContextInfoManager mgr;
@@ -44,7 +44,7 @@ public class ContextRegistrationIT {
     /**
      * Test setup
      */
-    @Before
+    @BeforeEach
     public void testSetup() {
         try {
             mgr = ContextInfoManager.getInstance();
This page took 0.023287 seconds and 4 git commands to generate.