Class ByteBufTests<T>
java.lang.Object
net.darkhax.bookshelf.impl.gametest.tests.ByteBufTests<T>
- All Implemented Interfaces:
ITestable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ByteBufHelper<T>protected final T[]protected final BiPredicate<T,T> protected final Tprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionByteBufTests(String type, ByteBufHelper<T> codecHelper, BiPredicate<T, T> equality, T... collection) ByteBufTests(String type, ByteBufHelper<T> codecHelper, BiPredicate<T, T> equality, T singleton, T... collection) ByteBufTests(String type, ByteBufHelper<T> serializer, T... collection) -
Method Summary
Modifier and TypeMethodDescriptionGets a default batch name that will supersede the annotation default when not null.voidtest_array(net.minecraft.gametest.framework.GameTestHelper helper) voidtest_list(net.minecraft.gametest.framework.GameTestHelper helper) voidtest_nullable(net.minecraft.gametest.framework.GameTestHelper helper) voidtest_nullable_null(net.minecraft.gametest.framework.GameTestHelper helper) voidtest_optional(net.minecraft.gametest.framework.GameTestHelper helper) voidtest_optional_empty(net.minecraft.gametest.framework.GameTestHelper helper) voidtest_set(net.minecraft.gametest.framework.GameTestHelper helper) voidtest_singleton(net.minecraft.gametest.framework.GameTestHelper helper) voidtest_weighted(net.minecraft.gametest.framework.GameTestHelper helper) voidtest_weighted_list(net.minecraft.gametest.framework.GameTestHelper helper)
-
Field Details
-
type
-
bufHelper
-
singleton
-
collection
-
equality
-
-
Constructor Details
-
ByteBufTests
-
ByteBufTests
public ByteBufTests(String type, ByteBufHelper<T> codecHelper, BiPredicate<T, T> equality, T... collection) -
ByteBufTests
public ByteBufTests(String type, ByteBufHelper<T> codecHelper, BiPredicate<T, T> equality, T singleton, T... collection)
-
-
Method Details
-
test_singleton
public void test_singleton(net.minecraft.gametest.framework.GameTestHelper helper) -
test_array
public void test_array(net.minecraft.gametest.framework.GameTestHelper helper) -
test_list
public void test_list(net.minecraft.gametest.framework.GameTestHelper helper) -
test_set
public void test_set(net.minecraft.gametest.framework.GameTestHelper helper) -
test_optional
public void test_optional(net.minecraft.gametest.framework.GameTestHelper helper) -
test_optional_empty
public void test_optional_empty(net.minecraft.gametest.framework.GameTestHelper helper) -
test_nullable
public void test_nullable(net.minecraft.gametest.framework.GameTestHelper helper) -
test_nullable_null
public void test_nullable_null(net.minecraft.gametest.framework.GameTestHelper helper) -
test_weighted
public void test_weighted(net.minecraft.gametest.framework.GameTestHelper helper) -
test_weighted_list
public void test_weighted_list(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.
-