Class VeniceEnumValueTest<T extends VeniceEnumValue>

java.lang.Object
com.linkedin.venice.utils.VeniceEnumValueTest<T>
Type Parameters:
T - the enum class under test

public abstract class VeniceEnumValueTest<T extends VeniceEnumValue> extends Object
Abstract class which makes it as easy as possible to generically test all the assumptions for enums which implement the VeniceEnumValue interface. Subclasses only need to implement the constructor and the abstract function.
  • Constructor Details

    • VeniceEnumValueTest

      protected VeniceEnumValueTest(Class<T> enumClass)
  • Method Details

    • expectedMapping

      protected abstract Map<Integer,T> expectedMapping()
    • test

      public void test()