Class VeniceEnumValueTest<T extends VeniceEnumValue>

  • Type Parameters:
    T - the enum class under test

    public abstract class VeniceEnumValueTest<T extends VeniceEnumValue>
    extends java.lang.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 Summary

      Constructors 
      Modifier Constructor Description
      protected VeniceEnumValueTest​(java.lang.Class<T> enumClass)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract java.util.Map<java.lang.Integer,​T> expectedMapping()  
      void test()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VeniceEnumValueTest

        protected VeniceEnumValueTest​(java.lang.Class<T> enumClass)
    • Method Detail

      • expectedMapping

        protected abstract java.util.Map<java.lang.Integer,​T> expectedMapping()
      • test

        public void test()