Migrate util module to JUnit 5.0 (#5581)

Signed-off-by: 7suyash7 <suyashnyn1@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
This commit is contained in:
Suyash Nayan
2023-06-12 09:55:40 +05:30
committed by GitHub
parent 2f669cc8fd
commit cb12a2c410
9 changed files with 9 additions and 9 deletions

View File

@@ -38,7 +38,7 @@ dependencies {
implementation 'org.apache.logging.log4j:log4j-slf4j2-impl'
implementation 'org.xerial.snappy:snappy-java'
testImplementation 'junit:junit'
testImplementation 'org.mockito:mockito-junit-jupiter'
testImplementation 'org.assertj:assertj-core'
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.mockito:mockito-core'

View File

@@ -18,7 +18,7 @@ import static org.assertj.core.api.Assertions.assertThat;
import java.util.concurrent.CompletionException;
import org.junit.Test;
import org.junit.jupiter.api.Test;
public class ExceptionUtilsTest {

View File

@@ -29,7 +29,7 @@ import java.util.concurrent.CompletionStage;
import java.util.concurrent.ExecutionException;
import java.util.function.Function;
import org.junit.Test;
import org.junit.jupiter.api.Test;
public class FutureUtilsTest {

View File

@@ -20,7 +20,7 @@ import org.hyperledger.besu.util.LimitedSet.Mode;
import java.util.Set;
import org.junit.Test;
import org.junit.jupiter.api.Test;
public class LimitedSetTest {

View File

@@ -20,7 +20,7 @@ import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import org.junit.Test;
import org.junit.jupiter.api.Test;
public class NetworkUtilityTest {

View File

@@ -21,7 +21,7 @@ import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyNoInteractions;
import org.junit.Test;
import org.junit.jupiter.api.Test;
public class SubscribersTest {
private final Runnable subscriber1 = mock(Runnable.class);

View File

@@ -17,7 +17,7 @@ package org.hyperledger.besu.util.number;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.catchThrowable;
import org.junit.Test;
import org.junit.jupiter.api.Test;
public class FractionTest {

View File

@@ -17,7 +17,7 @@ package org.hyperledger.besu.util.number;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.catchThrowable;
import org.junit.Test;
import org.junit.jupiter.api.Test;
public class PercentageTest {

View File

@@ -17,7 +17,7 @@ package org.hyperledger.besu.util.number;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import org.junit.Test;
import org.junit.jupiter.api.Test;
public class PositiveNumberTest {