File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
src/test/java/dev/compactmods/crafting/tests/recipes Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 1010import dev .compactmods .crafting .recipes .components .EmptyBlockComponent ;
1111import net .minecraft .block .Blocks ;
1212import org .junit .jupiter .api .Assertions ;
13+ import org .junit .jupiter .api .Tag ;
1314import org .junit .jupiter .api .Test ;
1415
1516public class CCRecipeComponentsTests {
@@ -37,6 +38,7 @@ void CanFetchComponentsFresh() {
3738 }
3839
3940 @ Test
41+ @ Tag ("minecraft" )
4042 void CanRegisterAndFetchBlocks () {
4143 CCMiniRecipeComponents components = new CCMiniRecipeComponents ();
4244 final BlockComponent BLOCK_COMPONENT = new BlockComponent (Blocks .GOLD_BLOCK );
@@ -57,6 +59,7 @@ void CanRegisterAndFetchBlocks() {
5759 }
5860
5961 @ Test
62+ @ Tag ("minecraft" )
6063 void EmptyBlocksAreActuallyEmpty () {
6164 CCMiniRecipeComponents components = new CCMiniRecipeComponents ();
6265 components .registerBlock ("G" , new BlockComponent (Blocks .GOLD_BLOCK ));
@@ -91,6 +94,7 @@ public RecipeComponentType<?> getType() {
9194 }
9295
9396 @ Test
97+ @ Tag ("minecraft" )
9498 void CanGetNumberOfComponents () {
9599 CCMiniRecipeComponents components = new CCMiniRecipeComponents ();
96100 Assertions .assertEquals (0 , components .size ());
Original file line number Diff line number Diff line change 99import net .minecraftforge .common .util .FakePlayerFactory ;
1010import net .minecraftforge .fml .server .ServerLifecycleHooks ;
1111import org .junit .jupiter .api .Assertions ;
12+ import org .junit .jupiter .api .Tag ;
1213import org .junit .jupiter .api .Test ;
1314import org .junit .jupiter .api .function .Executable ;
1415
1516public class RecipeSetupTests {
1617
1718 @ Test
19+ @ Tag ("minecraft" )
1820 void BaseRecipeType () {
1921 final ResourceLocation testId = new ResourceLocation ("compactcrafting" , "test" );
2022 BaseRecipeType <RecipeBase > type = new BaseRecipeType <>(testId );
@@ -26,6 +28,7 @@ void BaseRecipeType() {
2628 }
2729
2830 @ Test
31+ @ Tag ("minecraft" )
2932 void FakeInventory () {
3033 FakeInventory inv = new FakeInventory ();
3134 Assertions .assertNotNull (inv );
You can’t perform that action at this time.
0 commit comments