services - migrate to junit 5 (#5613)

* services to junit5

* removed some junit4 engine imports

* updated some plugins test since these extend from testutil KV storage

* one more form of EPL v2

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
This commit is contained in:
Sally MacFarlane
2023-06-21 09:12:51 +10:00
committed by GitHub
parent 5bff76f107
commit db173ebd98
27 changed files with 143 additions and 105 deletions

View File

@@ -40,9 +40,6 @@ dependencies {
implementation 'io.vertx:vertx-core'
implementation 'org.apache.tuweni:tuweni-bytes'
testImplementation 'junit:junit'
testImplementation 'org.assertj:assertj-core'
testImplementation 'org.junit.jupiter:junit-jupiter'
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
}

View File

@@ -23,7 +23,7 @@ import java.util.concurrent.CountDownLatch;
import java.util.function.Function;
import org.apache.tuweni.bytes.Bytes;
import org.junit.Test;
import org.junit.jupiter.api.Test;
abstract class AbstractTaskQueueTest<T extends TaskCollection<Bytes>> {

View File

@@ -23,13 +23,13 @@ import java.util.List;
import java.util.stream.Collectors;
import org.apache.tuweni.bytes.Bytes;
import org.junit.Before;
import org.junit.Test;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public class CachingTaskCollectionTest {
private TaskCollection<Bytes> wrappedTaskCollection;
@Before
@BeforeEach
public void setup() {
wrappedTaskCollection = new InMemoryTaskQueue<>();
}

View File

@@ -21,7 +21,7 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import org.junit.Test;
import org.junit.jupiter.api.Test;
public class InMemoryTasksPriorityQueuesTest {