Class TestSerialization<T>
java.lang.Object
net.darkhax.bookshelf.impl.gametest.TestSerialization<T>
- All Implemented Interfaces:
ITestable
-
Constructor Summary
ConstructorsConstructorDescriptionTestSerialization(String type, ISerializer<T> serializer, BiPredicate<T, T> equality, T... collection) TestSerialization(String type, ISerializer<T> serializer, BiPredicate<T, T> equality, T singleton, T... collection) TestSerialization(String type, ISerializer<T> serializer, T... collection) -
Method Summary
Modifier and TypeMethodDescriptionGets a default batch name that will supersede the annotation default when not null.voidtestBytebufEmptyOptionalSingleton(net.minecraft.gametest.framework.GameTestHelper helper) voidtestBytebufList(net.minecraft.gametest.framework.GameTestHelper helper) voidtestBytebufNullable(net.minecraft.gametest.framework.GameTestHelper helper) voidtestBytebufOptionalSingleton(net.minecraft.gametest.framework.GameTestHelper helper) voidtestBytebufSet(net.minecraft.gametest.framework.GameTestHelper helper) voidtestBytebufSingleton(net.minecraft.gametest.framework.GameTestHelper helper) voidtestBytebufWeightedList(net.minecraft.gametest.framework.GameTestHelper helper) voidtestBytebufWeightedSingleton(net.minecraft.gametest.framework.GameTestHelper helper) voidtestJsonEmptyOptionalSingleton(net.minecraft.gametest.framework.GameTestHelper helper) voidtestJsonList(net.minecraft.gametest.framework.GameTestHelper helper) voidtestJsonListEmpty(net.minecraft.gametest.framework.GameTestHelper helper) voidtestJsonListNull(net.minecraft.gametest.framework.GameTestHelper helper) voidtestJsonNullable(net.minecraft.gametest.framework.GameTestHelper helper) voidtestJsonOptionalSingleton(net.minecraft.gametest.framework.GameTestHelper helper) voidtestJsonSet(net.minecraft.gametest.framework.GameTestHelper helper) voidtestJsonSingleton(net.minecraft.gametest.framework.GameTestHelper helper) voidtestJsonWeightedList(net.minecraft.gametest.framework.GameTestHelper helper) voidtestJsonWeightedSingleton(net.minecraft.gametest.framework.GameTestHelper helper) voidtestNbtList(net.minecraft.gametest.framework.GameTestHelper helper) voidtestNbtSingleton(net.minecraft.gametest.framework.GameTestHelper helper)
-
Constructor Details
-
TestSerialization
-
TestSerialization
public TestSerialization(String type, ISerializer<T> serializer, BiPredicate<T, T> equality, T... collection) -
TestSerialization
public TestSerialization(String type, ISerializer<T> serializer, BiPredicate<T, T> equality, T singleton, T... collection)
-
-
Method Details
-
testJsonSingleton
public void testJsonSingleton(net.minecraft.gametest.framework.GameTestHelper helper) -
testBytebufSingleton
public void testBytebufSingleton(net.minecraft.gametest.framework.GameTestHelper helper) -
testNbtSingleton
public void testNbtSingleton(net.minecraft.gametest.framework.GameTestHelper helper) -
testJsonWeightedSingleton
public void testJsonWeightedSingleton(net.minecraft.gametest.framework.GameTestHelper helper) -
testBytebufWeightedSingleton
public void testBytebufWeightedSingleton(net.minecraft.gametest.framework.GameTestHelper helper) -
testJsonOptionalSingleton
public void testJsonOptionalSingleton(net.minecraft.gametest.framework.GameTestHelper helper) -
testBytebufOptionalSingleton
public void testBytebufOptionalSingleton(net.minecraft.gametest.framework.GameTestHelper helper) -
testJsonEmptyOptionalSingleton
public void testJsonEmptyOptionalSingleton(net.minecraft.gametest.framework.GameTestHelper helper) -
testBytebufEmptyOptionalSingleton
public void testBytebufEmptyOptionalSingleton(net.minecraft.gametest.framework.GameTestHelper helper) -
testJsonList
public void testJsonList(net.minecraft.gametest.framework.GameTestHelper helper) -
testBytebufList
public void testBytebufList(net.minecraft.gametest.framework.GameTestHelper helper) -
testNbtList
public void testNbtList(net.minecraft.gametest.framework.GameTestHelper helper) -
testJsonSet
public void testJsonSet(net.minecraft.gametest.framework.GameTestHelper helper) -
testBytebufSet
public void testBytebufSet(net.minecraft.gametest.framework.GameTestHelper helper) -
testJsonWeightedList
public void testJsonWeightedList(net.minecraft.gametest.framework.GameTestHelper helper) -
testBytebufWeightedList
public void testBytebufWeightedList(net.minecraft.gametest.framework.GameTestHelper helper) -
testJsonListEmpty
public void testJsonListEmpty(net.minecraft.gametest.framework.GameTestHelper helper) -
testJsonListNull
public void testJsonListNull(net.minecraft.gametest.framework.GameTestHelper helper) -
testJsonNullable
public void testJsonNullable(net.minecraft.gametest.framework.GameTestHelper helper) -
testBytebufNullable
public void testBytebufNullable(net.minecraft.gametest.framework.GameTestHelper helper) -
getDefaultBatch
Description copied from interface:ITestableGets a default batch name that will supersede the annotation default when not null.- Specified by:
getDefaultBatchin interfaceITestable- Returns:
- The default batch name for all tests in the implementation.
-