Skip to content

Commit

Permalink
Switch to JUnit 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Exaxxion committed Dec 24, 2024
1 parent 1e6e21f commit 1ab1322
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ dependencies {
compileOnlyApi rfg.deobf("curse.maven:mantle-74924:2713386")
compileOnlyApi rfg.deobf("curse.maven:TConstruct-74072:2902483")
implementation rfg.deobf("curse.maven:CTM-267602:2915363")
testImplementation "junit:junit:4.13.1"
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ enableSpotless = false

# Enable JUnit testing platform used for testing your code.
# Uses JUnit 5. See guide and documentation here: https://junit.org/junit5/docs/current/user-guide/
enableJUnit = false
enableJUnit = true

# Deployment debug setting
# Uncomment this to test deployments to CurseForge and Modrinth
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package gregicadditions.machines;

import net.minecraft.init.*;
import org.junit.*;
import org.junit.jupiter.api.*;

import static org.junit.Assert.*;
import static org.junit.jupiter.api.Assertions.*;

/**
* Tests for validating correctness of logic for the Processing Array.
Expand All @@ -13,13 +13,13 @@ public class ProcessingArrayTests {
/**
* Required. Without this all item-related operations will fail because registries haven't been initialized.
*/
@BeforeClass
@BeforeAll
public static void bootStrap() {
Bootstrap.register();
}

@Test
@Ignore
@Disabled
public void test_goes_here() {
fail();
}
Expand Down

0 comments on commit 1ab1322

Please sign in to comment.