Skip to content

Commit

Permalink
Migrate util module to JUnit 5.0 (hyperledger#5581)
Browse files Browse the repository at this point in the history
Signed-off-by: 7suyash7 <[email protected]>
Co-authored-by: Sally MacFarlane <[email protected]>
  • Loading branch information
7suyash7 and macfarla authored Jun 12, 2023
1 parent 2f669cc commit cb12a2c
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion util/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import java.util.concurrent.CompletionException;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class ExceptionUtilsTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import java.util.concurrent.ExecutionException;
import java.util.function.Function;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class FutureUtilsTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import java.util.Set;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class LimitedSetTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import java.net.InetSocketAddress;
import java.net.ServerSocket;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class NetworkUtilityTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
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 {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
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 {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
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 {

Expand Down

0 comments on commit cb12a2c

Please sign in to comment.