Class TestRegistry


  • public class TestRegistry
    extends java.lang.Object
    • Field Detail

      • testFunctions

        private static final java.util.Collection<TestFunctionInfo> testFunctions
      • testClassNames

        private static final java.util.Set<java.lang.String> testClassNames
      • beforeBatchFunctions

        private static final java.util.Map<java.lang.String,​java.util.function.Consumer<ServerWorld>> beforeBatchFunctions
      • lastFailedTests

        private static final java.util.Collection<TestFunctionInfo> lastFailedTests
    • Constructor Detail

      • TestRegistry

        public TestRegistry()
    • Method Detail

      • getTestFunctionsForClassName

        public static java.util.Collection<TestFunctionInfo> getTestFunctionsForClassName​(java.lang.String p_229530_0_)
      • getAllTestFunctions

        public static java.util.Collection<TestFunctionInfo> getAllTestFunctions()
      • getAllTestClassNames

        public static java.util.Collection<java.lang.String> getAllTestClassNames()
      • isTestClass

        public static boolean isTestClass​(java.lang.String p_229534_0_)
      • getBeforeBatchFunction

        @Nullable
        public static java.util.function.Consumer<ServerWorld> getBeforeBatchFunction​(java.lang.String p_229536_0_)
      • findTestFunction

        public static java.util.Optional<TestFunctionInfo> findTestFunction​(java.lang.String p_229537_0_)
      • getTestFunction

        public static TestFunctionInfo getTestFunction​(java.lang.String p_229538_0_)
      • isTestFunctionPartOfClass

        private static boolean isTestFunctionPartOfClass​(TestFunctionInfo p_229532_0_,
                                                         java.lang.String p_229532_1_)
      • getLastFailedTests

        public static java.util.Collection<TestFunctionInfo> getLastFailedTests()
      • rememberFailedTest

        public static void rememberFailedTest​(TestFunctionInfo p_240548_0_)
      • forgetFailedTests

        public static void forgetFailedTests()