Class PublicClassValidator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.List<java.lang.Exception> NO_VALIDATION_ERRORS  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.Exception> validateTestClass​(TestClass testClass)
      Validate that the specified TestClass is public.
      • Methods inherited from class java.lang.Object

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

      • NO_VALIDATION_ERRORS

        private static final java.util.List<java.lang.Exception> NO_VALIDATION_ERRORS
    • Constructor Detail

      • PublicClassValidator

        public PublicClassValidator()
    • Method Detail

      • validateTestClass

        public java.util.List<java.lang.Exception> validateTestClass​(TestClass testClass)
        Validate that the specified TestClass is public.
        Specified by:
        validateTestClass in interface TestClassValidator
        Parameters:
        testClass - the TestClass that is validated.
        Returns:
        an empty list if the class is public or a list with a single exception otherwise.