类 ConditionalCodecTest
java.lang.Object
net.neoforged.neoforge.oldtest.conditions.ConditionalCodecTest
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.-
嵌套类概要
嵌套类修饰符和类型类说明private static class
private static class
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static <T> void
assertEquals
(T expected, T actual) While JUnit is added viamodImplementation
, it is not actually available in the GAME layer at the moment.private static void
assertErrored
(com.mojang.serialization.DataResult<?> result) private static com.google.gson.JsonElement
private static <T> String
write
(com.mojang.serialization.Codec<T> codec, T input)
-
字段详细资料
-
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
-
write
-
assertEquals
private static <T> void assertEquals(T expected, T actual) While JUnit is added viamodImplementation
, 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)
-