Skip to content

Commit 2a530d5

Browse files
committed
Make more tests extend AbstractIntegrationTest
Prevent potential issues when running tests standalone or in arbitrary order.
1 parent 16c775b commit 2a530d5

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

src/test/java/com/laytonsmith/core/ScriptTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
import org.junit.Before;
66
import org.junit.BeforeClass;
77

8+
import com.laytonsmith.testing.AbstractIntegrationTest;
9+
810
/**
911
*
1012
*
1113
*/
12-
public class ScriptTest {
14+
public class ScriptTest extends AbstractIntegrationTest {
1315

1416
public ScriptTest() {
1517
}

src/test/java/com/laytonsmith/core/asm/AsmIntegrationTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package com.laytonsmith.core.asm;
22

33
import com.laytonsmith.PureUtilities.Common.OSUtils;
4+
import com.laytonsmith.testing.AbstractIntegrationTest;
5+
46
import org.junit.FixMethodOrder;
57
import org.junit.Test;
68
import org.junit.runners.MethodSorters;
@@ -12,7 +14,7 @@
1214
import static com.laytonsmith.core.asm.AsmIntegrationTestUtils.installToolchain;
1315

1416
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
15-
public class AsmIntegrationTests {
17+
public class AsmIntegrationTests extends AbstractIntegrationTest {
1618

1719
@Test
1820
public void aaaTestToolchainInstallation() throws Exception {

src/test/java/com/laytonsmith/core/functions/CryptoTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88
import org.junit.BeforeClass;
99
import org.junit.Test;
1010

11+
import com.laytonsmith.testing.AbstractIntegrationTest;
12+
1113
/**
1214
*
1315
*
1416
*/
15-
public class CryptoTest {
17+
public class CryptoTest extends AbstractIntegrationTest {
1618

1719
public CryptoTest() {
1820
}

src/test/java/com/laytonsmith/core/functions/PermissionsTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import com.laytonsmith.core.Prefs;
77
import com.laytonsmith.core.Static;
88
import com.laytonsmith.core.environments.CommandHelperEnvironment;
9+
import com.laytonsmith.testing.AbstractIntegrationTest;
910
import com.laytonsmith.testing.StaticTest;
1011
import org.junit.After;
1112
import org.junit.AfterClass;
@@ -27,7 +28,7 @@
2728
*/
2829
//@RunWith(PowerMockRunner.class)
2930
//@PrepareForTest({Static.class, CommandHelperPlugin.class})
30-
public class PermissionsTest {
31+
public class PermissionsTest extends AbstractIntegrationTest {
3132

3233
MCServer fakeServer;
3334
MCPlayer fakePlayer;

0 commit comments

Comments
 (0)