aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/junit/runners/model/RunnerScheduler.java
blob: fbc25a4a6b6ca3c29c210bf209a6cc586e06684f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package org.junit.runners.model;

/**
 * Represents a strategy for scheduling when individual test methods
 * should be run (in serial or parallel)
 * 
 * WARNING: still experimental, may go away.
 */
public interface RunnerScheduler {
	/**
	 * Schedule a child statement to run
	 */
	void schedule(Runnable childStatement);
	
	/**
	 * Override to implement any behavior that must occur
	 * after all children have been scheduled (for example,
	 * waiting for them all to finish)
	 */
	void finished();
}