From c295b8a08d95865e6fc97fbc17bac7abb476a2cf Mon Sep 17 00:00:00 2001 From: Carter <69820300+Cart3r1234@users.noreply.github.com> Date: Thu, 9 Jan 2025 16:08:15 -0500 Subject: [PATCH] some unfinished gametest stuff for later --- .../gametests/PortalGameTests.java | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/src/gametests/java/io/github/fusionflux/portalcubed_gametests/gametests/PortalGameTests.java b/src/gametests/java/io/github/fusionflux/portalcubed_gametests/gametests/PortalGameTests.java index 57432349..3a74251b 100644 --- a/src/gametests/java/io/github/fusionflux/portalcubed_gametests/gametests/PortalGameTests.java +++ b/src/gametests/java/io/github/fusionflux/portalcubed_gametests/gametests/PortalGameTests.java @@ -183,6 +183,32 @@ public void thinPortalSurfaces(GameTestHelper helper) { //todo } + //Test the "create" portion of the portal command + @GameTest(template = GROUP + "portal_command_create") + public void portalCommandCreate(GameTestHelper helper) { + + //todo + + helper.succeedWhen(() -> { + //placeOn1.primary().assertPresent(); + //placeOn1.secondary().assertPresent(); + //placeAt1.primary().assertPresent(); + //placeAt1.secondary().assertPresent(); + //shotFrom1.primary().assertPresent(); + //shotFrom1.secondary().assertPresent(); + + helper.assertBlockPresent(Blocks.SPONGE, 0, 0, 0); + //todo: leave this here until the portal existence checks are implemented, so the test doesn't pass instantly. Remove later + }); + } + + //Test the "remove" portion of the portal command + @GameTest(template = GROUP + "portal_command_remove") + public void portalCommandRemove(GameTestHelper helper) { + + //todo + } + //Test portals becoming obstructed by solid blocks that they cannot exist within @GameTest(template = GROUP + "portal_become_obstructed") @@ -217,7 +243,7 @@ public void portalBecomeObstructed(GameTestHelper helper) { //doorTrapdoor.secondary().assertNotPresent(); helper.assertBlockPresent(Blocks.SPONGE, 0, 0, 0); - //leave this here until the portal existence checks are implemented, so the test doesn't pass instantly. Remove later + //todo: leave this here until the portal existence checks are implemented, so the test doesn't pass instantly. Remove later }); } @@ -241,7 +267,7 @@ public void validPortalSurfaces(GameTestHelper helper) { //facadeSurfaces.secondary().assertPresent(); helper.assertBlockPresent(Blocks.SPONGE, 0, 0, 0); - //leave this here until the portal existence checks are implemented, so the test doesn't pass instantly. Remove later + //todo: leave this here until the portal existence checks are implemented, so the test doesn't pass instantly. Remove later }); }