Package net.minecraft.test
Class TestRegistry
- java.lang.Object
-
- net.minecraft.test.TestRegistry
-
public class TestRegistry extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.String,java.util.function.Consumer<ServerWorld>>
beforeBatchFunctions
private static java.util.Collection<TestFunctionInfo>
lastFailedTests
private static java.util.Set<java.lang.String>
testClassNames
private static java.util.Collection<TestFunctionInfo>
testFunctions
-
Constructor Summary
Constructors Constructor Description TestRegistry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<TestFunctionInfo>
findTestFunction(java.lang.String p_229537_0_)
static void
forgetFailedTests()
static java.util.Collection<java.lang.String>
getAllTestClassNames()
static java.util.Collection<TestFunctionInfo>
getAllTestFunctions()
static java.util.function.Consumer<ServerWorld>
getBeforeBatchFunction(java.lang.String p_229536_0_)
static java.util.Collection<TestFunctionInfo>
getLastFailedTests()
static TestFunctionInfo
getTestFunction(java.lang.String p_229538_0_)
static java.util.Collection<TestFunctionInfo>
getTestFunctionsForClassName(java.lang.String p_229530_0_)
static boolean
isTestClass(java.lang.String p_229534_0_)
private static boolean
isTestFunctionPartOfClass(TestFunctionInfo p_229532_0_, java.lang.String p_229532_1_)
static void
rememberFailedTest(TestFunctionInfo p_240548_0_)
-
-
-
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
-
-
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()
-
-