test: migrate to JUnit 5 (PR #493)

This commit is contained in:
Ahmed Ashour
2019-03-22 15:36:13 +01:00
committed by skylot
parent 5f0dbf856b
commit 16b6345c7f
238 changed files with 273 additions and 267 deletions
@@ -3,8 +3,8 @@ package jadx.gui.treemodel;
import java.util.Collections;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import jadx.api.Factory;
import jadx.api.JadxArgs;
@@ -26,7 +26,7 @@ public class JSourcesTest {
private JSources sources;
private JadxDecompiler decompiler;
@Before
@BeforeEach
public void init() {
JRoot root = mock(JRoot.class);
when(root.isFlatPackages()).thenReturn(false);
@@ -8,8 +8,8 @@ import java.security.cert.Certificate;
import java.util.Collection;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public class CertificateManagerTest {
private static final String CERTIFICATE_TEST_DIR = "certificate-test/";
@@ -32,7 +32,7 @@ public class CertificateManagerTest {
}
}
@Before
@BeforeEach
public void setUp() {
emptyPath = getResourcePath(EMPTY);
certificateManagerRSA = getCertificateManger(RSA);