类 ConditionalCodecTest

java.lang.Object
net.neoforged.neoforge.oldtest.conditions.ConditionalCodecTest

public class ConditionalCodecTest extends Object
Tests for ConditionalOps and related methods. We do not have JUnit support at the moment, so these unit tests run in the FMLCommonSetupEvent. If you can get to the main menu, it means that the tests passed.
  • 字段详细资料

    • ENABLED

      public static final boolean ENABLED
      另请参阅:
    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • GSON

      private static final com.google.gson.Gson GSON
  • 构造器详细资料

    • ConditionalCodecTest

      public ConditionalCodecTest(net.neoforged.bus.api.IEventBus modBus)
  • 方法详细资料

    • read

      private static com.google.gson.JsonElement read(String s)
    • write

      private static <T> String write(com.mojang.serialization.Codec<T> codec, T input)
    • assertEquals

      private static <T> void assertEquals(T expected, T actual)
      While JUnit is added via modImplementation, it is not actually available in the GAME layer at the moment. This function can be replaced by JUnit assertions once we have support for non-mod dependencies in NeoGradle.
    • assertErrored

      private static void assertErrored(com.mojang.serialization.DataResult<?> result)