mirror of
https://github.com/vacp2p/linea-besu.git
synced 2026-01-09 15:37:54 -05:00
migrate to junit5 (#5573)
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
This commit is contained in:
@@ -35,7 +35,6 @@ dependencies {
|
||||
implementation 'info.picocli:picocli'
|
||||
|
||||
testImplementation 'com.google.errorprone:error_prone_test_helpers'
|
||||
testImplementation 'junit:junit'
|
||||
testImplementation 'org.assertj:assertj-core'
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter'
|
||||
|
||||
|
||||
@@ -15,14 +15,14 @@
|
||||
package org.hyperledger.errorpronechecks;
|
||||
|
||||
import com.google.errorprone.CompilationTestHelper;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class BannedMethodTest {
|
||||
|
||||
private CompilationTestHelper compilationHelper;
|
||||
|
||||
@Before
|
||||
@BeforeEach
|
||||
public void setup() {
|
||||
compilationHelper = CompilationTestHelper.newInstance(BannedMethod.class, getClass());
|
||||
}
|
||||
|
||||
@@ -15,14 +15,14 @@
|
||||
package org.hyperledger.errorpronechecks;
|
||||
|
||||
import com.google.errorprone.CompilationTestHelper;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class DoNotCreateSecureRandomDirectlyTest {
|
||||
|
||||
private CompilationTestHelper compilationHelper;
|
||||
|
||||
@Before
|
||||
@BeforeEach
|
||||
public void setup() {
|
||||
compilationHelper =
|
||||
CompilationTestHelper.newInstance(DoNotCreateSecureRandomDirectly.class, getClass());
|
||||
|
||||
@@ -15,14 +15,14 @@
|
||||
package org.hyperledger.errorpronechecks;
|
||||
|
||||
import com.google.errorprone.CompilationTestHelper;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class DoNotInvokeMessageDigestDirectlyTest {
|
||||
|
||||
private CompilationTestHelper compilationHelper;
|
||||
|
||||
@Before
|
||||
@BeforeEach
|
||||
public void setup() {
|
||||
compilationHelper =
|
||||
CompilationTestHelper.newInstance(DoNotInvokeMessageDigestDirectly.class, getClass());
|
||||
|
||||
@@ -15,14 +15,14 @@
|
||||
package org.hyperledger.errorpronechecks;
|
||||
|
||||
import com.google.errorprone.CompilationTestHelper;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class DoNotReturnNullOptionalsTest {
|
||||
|
||||
private CompilationTestHelper compilationHelper;
|
||||
|
||||
@Before
|
||||
@BeforeEach
|
||||
public void setup() {
|
||||
compilationHelper =
|
||||
CompilationTestHelper.newInstance(DoNotReturnNullOptionals.class, getClass());
|
||||
|
||||
@@ -15,14 +15,14 @@
|
||||
package org.hyperledger.errorpronechecks;
|
||||
|
||||
import com.google.errorprone.CompilationTestHelper;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class ExperimentalCliOptionMustBeCorrectlyDisplayedTest {
|
||||
|
||||
private CompilationTestHelper compilationHelper;
|
||||
|
||||
@Before
|
||||
@BeforeEach
|
||||
public void setup() {
|
||||
compilationHelper =
|
||||
CompilationTestHelper.newInstance(
|
||||
|
||||
@@ -15,14 +15,14 @@
|
||||
package org.hyperledger.errorpronechecks;
|
||||
|
||||
import com.google.errorprone.CompilationTestHelper;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class MethodInputParametersMustBeFinalTest {
|
||||
|
||||
private CompilationTestHelper compilationHelper;
|
||||
|
||||
@Before
|
||||
@BeforeEach
|
||||
public void setup() {
|
||||
compilationHelper =
|
||||
CompilationTestHelper.newInstance(MethodInputParametersMustBeFinal.class, getClass());
|
||||
|
||||
@@ -15,14 +15,14 @@
|
||||
package org.hyperledger.errorpronechecks;
|
||||
|
||||
import com.google.errorprone.CompilationTestHelper;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class PrivateStaticFinalLoggersTest {
|
||||
|
||||
private CompilationTestHelper compilationHelper;
|
||||
|
||||
@Before
|
||||
@BeforeEach
|
||||
public void setup() {
|
||||
compilationHelper =
|
||||
CompilationTestHelper.newInstance(PrivateStaticFinalLoggers.class, getClass());
|
||||
|
||||
Reference in New Issue
Block a user