1 package junit.swingui; 2 3 import javax.swing.ListModel; 4 5 import junit.framework.Test; 6 7 /** 8 * The interface for accessing the Test run context. Test run views 9 * should use this interface rather than accessing the TestRunner 10 * directly. 11 */ 12 public interface TestRunContext { 13 /** 14 * Handles the selection of a Test. 15 */ 16 public void handleTestSelected(Test test); 17 /** 18 * Returns the failure model 19 */ 20 public ListModel getFailures(); 21 }