1package org.junit.runners.model;
2
3/**
4 * Represents a strategy for scheduling when individual test methods
5 * should be run (in serial or parallel)
6 *
7 * WARNING: still experimental, may go away.
8 *
9 * @since 4.7
10 */
11public interface RunnerScheduler {
12    /**
13     * Schedule a child statement to run
14     */
15    void schedule(Runnable childStatement);
16
17    /**
18     * Override to implement any behavior that must occur
19     * after all children have been scheduled (for example,
20     * waiting for them all to finish)
21     */
22    void finished();
23}
24