Class TestUtils


  • public final class TestUtils
    extends java.lang.Object
    Utilities for unit tests
    Since:
    2.2
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean hasOnlyPrivateConstructors​(java.lang.Class clazz)
      Asserts that all constructors are private, usually for helper classes with only static methods.
      • Methods inherited from class java.lang.Object

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

      • hasOnlyPrivateConstructors

        public static boolean hasOnlyPrivateConstructors​(java.lang.Class clazz)
        Asserts that all constructors are private, usually for helper classes with only static methods. If a constructor does not have any parameters, then it's instantiated.