Class ByteBufTests<T>

java.lang.Object
net.darkhax.bookshelf.impl.gametest.tests.ByteBufTests<T>
All Implemented Interfaces:
ITestable

public class ByteBufTests<T> extends Object implements ITestable
  • Field Details

    • type

      protected final String type
    • bufHelper

      protected final ByteBufHelper<T> bufHelper
    • singleton

      protected final T singleton
    • collection

      protected final T[] collection
    • equality

      protected final BiPredicate<T,T> equality
  • Constructor Details

  • 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

      public String getDefaultBatch()
      Description copied from interface: ITestable
      Gets a default batch name that will supersede the annotation default when not null.
      Specified by:
      getDefaultBatch in interface ITestable
      Returns:
      The default batch name for all tests in the implementation.