projects
/
lttng-ust-java-tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Migrate to Junit 5 Jupiter
[lttng-ust-java-tests.git]
/
lttng-ust-java-tests-common
/
src
/
main
/
java
/
org
/
lttng
/
ust
/
agent
/
integration
/
filter
/
FilterListenerITBase.java
diff --git
a/lttng-ust-java-tests-common/src/main/java/org/lttng/ust/agent/integration/filter/FilterListenerITBase.java
b/lttng-ust-java-tests-common/src/main/java/org/lttng/ust/agent/integration/filter/FilterListenerITBase.java
index dddcaeea74f98efd03c48c33ef667798d17676f5..7712b46cd9f5509c98f8471e7f1500982f09a487 100644
(file)
--- a/
lttng-ust-java-tests-common/src/main/java/org/lttng/ust/agent/integration/filter/FilterListenerITBase.java
+++ b/
lttng-ust-java-tests-common/src/main/java/org/lttng/ust/agent/integration/filter/FilterListenerITBase.java
@@
-18,7
+18,7
@@
package org.lttng.ust.agent.integration.filter;
package org.lttng.ust.agent.integration.filter;
-import static org.junit.
Assert
.assertEquals;
+import static org.junit.
jupiter.api.Assertions
.assertEquals;
import java.io.IOException;
import java.util.Collections;
import java.io.IOException;
import java.util.Collections;
@@
-27,10
+27,10
@@
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import java.util.stream.Collectors;
import java.util.stream.Stream;
-import org.junit.
After
;
-import org.junit.
Before
;
-import org.junit.
Test
;
-import org.junit.
runner.RunWit
h;
+import org.junit.
jupiter.api.Test
;
+import org.junit.
jupiter.api.extension.ExtendWith
;
+import org.junit.
jupiter.api.AfterEach
;
+import org.junit.
jupiter.api.BeforeEac
h;
import org.lttng.tools.ILttngSession;
import org.lttng.ust.agent.ILttngHandler;
import org.lttng.ust.agent.filter.FilterChangeNotifier;
import org.lttng.tools.ILttngSession;
import org.lttng.ust.agent.ILttngHandler;
import org.lttng.ust.agent.filter.FilterChangeNotifier;
@@
-40,14
+40,14
@@
import org.lttng.ust.agent.session.LogLevelSelector;
import org.lttng.ust.agent.session.LogLevelSelector.LogLevelType;
import org.lttng.ust.agent.utils.EventRuleFactory;
import org.lttng.ust.agent.utils.ILogLevelStrings;
import org.lttng.ust.agent.session.LogLevelSelector.LogLevelType;
import org.lttng.ust.agent.utils.EventRuleFactory;
import org.lttng.ust.agent.utils.ILogLevelStrings;
-import org.lttng.ust.agent.utils.TestPrint
Runner
;
+import org.lttng.ust.agent.utils.TestPrint
Extension
;
/**
* Base test class for {@link IFilterChangeListener} tests.
*
* @author Alexandre Montplaisir
*/
/**
* Base test class for {@link IFilterChangeListener} tests.
*
* @author Alexandre Montplaisir
*/
-@
RunWith(TestPrintRunner
.class)
+@
ExtendWith(TestPrintExtension
.class)
public abstract class FilterListenerITBase {
private static final String EVENT_NAME_A = "eventA";
public abstract class FilterListenerITBase {
private static final String EVENT_NAME_A = "eventA";
@@
-68,7
+68,7
@@
public abstract class FilterListenerITBase {
* @throws SecurityException
* @throws IOException
*/
* @throws SecurityException
* @throws IOException
*/
- @Before
+ @Before
Each
public void setup() throws SecurityException, IOException {
handler = getLogHandler();
listener = new TestFilterListener();
public void setup() throws SecurityException, IOException {
handler = getLogHandler();
listener = new TestFilterListener();
@@
-81,7
+81,7
@@
public abstract class FilterListenerITBase {
/**
* Test teardown
*/
/**
* Test teardown
*/
- @After
+ @After
Each
public void teardown() {
session.close();
FilterChangeNotifier.getInstance().unregisterListener(listener);
public void teardown() {
session.close();
FilterChangeNotifier.getInstance().unregisterListener(listener);
This page took
0.023926 seconds
and
4
git commands to generate.