Migrate util module to JUnit 5.0 (#5581)

Signed-off-by: 7suyash7 <suyashnyn1@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
pull/5585/head
Suyash Nayan 1 year ago committed by GitHub
parent 2f669cc8fd
commit cb12a2c410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      util/build.gradle
  2. 2
      util/src/test/java/org/hyperledger/besu/util/ExceptionUtilsTest.java
  3. 2
      util/src/test/java/org/hyperledger/besu/util/FutureUtilsTest.java
  4. 2
      util/src/test/java/org/hyperledger/besu/util/LimitedSetTest.java
  5. 2
      util/src/test/java/org/hyperledger/besu/util/NetworkUtilityTest.java
  6. 2
      util/src/test/java/org/hyperledger/besu/util/SubscribersTest.java
  7. 2
      util/src/test/java/org/hyperledger/besu/util/number/FractionTest.java
  8. 2
      util/src/test/java/org/hyperledger/besu/util/number/PercentageTest.java
  9. 2
      util/src/test/java/org/hyperledger/besu/util/number/PositiveNumberTest.java

@ -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'

@ -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 {

@ -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 {

@ -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 {

@ -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 {

@ -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);

@ -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 {

@ -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 {

@ -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 {

Loading…
Cancel
Save