net.minecraft.test

public class TestRunContext

net.minecraft.gametest.framework.GameTestRunner
net.minecraft.class_4520
net.minecraft.test.TestRunContext

Field summary

Modifier and TypeField
public static final int
DEFAULT_TESTS_PER_ROW
field_33151
DEFAULT_TESTS_PER_ROW
private static final org.slf4j.Logger
LOGGER
field_48470
LOGGER
private final ServerWorld
level
field_48471
world
private final TestManager
testTicker
field_48472
manager
private final List<GameTestState>
allTestInfos
field_48473
states
private com.google.common.collect.ImmutableList<GameTestBatch>
batches
field_48474
batches
private final List<BatchListener>
batchListeners
field_48475
batchListeners
private final List<GameTestState>
scheduledForRerun
field_48476
toBeRetried
private final TestRunContext$Batcher
testBatcher
field_48477
batcher
private boolean
stopped
field_48478
stopped
private RegistryEntry<TestEnvironmentDefinition>
currentEnvironment
field_56190
environment
private final TestRunContext$TestStructureSpawner
existingStructureSpawner
field_48480
reuseSpawner
private final TestRunContext$TestStructureSpawner
newStructureSpawner
field_48481
initialSpawner
private final boolean
haltOnError
field_52279
stopAfterFailure
private final boolean
clearBetweenBatches
field_61881
clearBetweenBatches

Constructor summary

ModifierConstructor
protected (TestRunContext$Batcher batcher, Collection<GameTestBatch> batches, ServerWorld world, TestManager manager, TestRunContext$TestStructureSpawner reuseSpawner, TestRunContext$TestStructureSpawner initialSpawner, boolean stopAfterFailure, boolean clearBetweenBatches)

Method summary

Modifier and TypeMethod
public List<GameTestState>
getTestInfos()
method_56219()
getStates()
public void
start()
method_56226()
start()
public void
stop()
method_56229()
clear()
public void
rerunTest(GameTestInfo info)
method_56224(class_4517 arg0)
retry(GameTestState state)
private void
runBatch(int batchIndex)
method_56220(int arg0)
runBatch(int batchIndex)
private void
endCurrentEnvironment()
method_66982()
clearEnvironment()
private void
runScheduledRerunTests()
method_56231()
onFinish()
public void
addListener(GameTestBatchListener listener)
method_56223(class_9114 arg0)
addBatchListener(BatchListener batchListener)
private Collection<GameTestState>
createStructuresForBatch(Collection<GameTestInfo> batch)
method_56221(Collection<class_4517> arg0)
prepareStructures(Collection<GameTestState> oldStates)
private Optional<GameTestState>
spawn(GameTestInfo testInfo)
method_56228(class_4517 arg0)
prepareStructure(GameTestState oldState)
private static String
lambda$runScheduledRerunTests$5(GameTestInfo arg0)
method_57072(class_4517 arg0)
method_57072(GameTestState state)
private static void
lambda$runBatch$4(GameTestBatch arg0, GameTestBatchListener arg1)
method_56227(class_4514 arg0, class_9114 arg1)
method_56227(GameTestBatch arg0, BatchListener listener)
private void
lambda$runBatch$3(GameTestInfo arg0)
method_73075(class_4517 arg0)
method_73075(GameTestState state)
private void
lambda$rerunTest$2(GameTestInfo arg0, GameTestInfo arg1, GameTestListener arg2)
method_56225(class_4517 arg0, class_4517 arg1, class_4518 arg2)
method_56225(GameTestState arg0, GameTestState arg1, TestListener listener)
private static void
lambda$new$1(GameTestInfo arg0)
method_56230(class_4517 arg0)
method_56230(GameTestState state)
private static Stream
lambda$new$0(GameTestBatch arg0)
method_56222(class_4514 arg0)
method_56222(GameTestBatch batch)