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 */ 9public interface RunnerScheduler { 10 /** 11 * Schedule a child statement to run 12 */ 13 void schedule(Runnable childStatement); 14 15 /** 16 * Override to implement any behavior that must occur 17 * after all children have been scheduled (for example, 18 * waiting for them all to finish) 19 */ 20 void finished(); 21} 22