/** * A test ended. */ public void endTest(Test test) { fModel.addRunTest(test); fireTestChanged(test, false); }
protected void testSelected() { fRunContext.handleTestSelected(getSelectedTest()); } }
public void browseTestClasses() { TestCollector collector= createTestCollector(); TestSelector selector= new TestSelector(fFrame, collector); if (selector.isEmpty()) { JOptionPane.showMessageDialog(fFrame, "No Test Cases found.\nCheck that the configured \'TestCollector\' is supported on this platform."); return; } selector.show(); String className= selector.getSelectedItem(); if (className != null) setSuite(className); }
public void showInfo(String message) { setFont(PLAIN_FONT); setForeground(Color.black); setText(message); }
public void addFailure(final Test test, final AssertionFailedError t) { fModel.addFailure(test); fireTestChanged(test, true); }
protected void testSelected() { fTestContext.handleTestSelected(getSelectedTest()); } }
public void addError(final Test test, final Throwable t) { fModel.addError(test); fireTestChanged(test, true); }
public void clear() { setText(""); setToolTipText(null); } }
private void about() { AboutDialog about= new AboutDialog(fFrame); about.show(); } }
public void reset() { fError= false; updateBarColor(); setValue(0); }
/** * Shows the test hierarchy starting at the given test */ public void showTestTree(Test root) { fModel= new TestTreeModel(root); fTree.setModel(fModel); fTree.setCellRenderer(new TestTreeCellRenderer()); }
public void run() { if (fTestResult != null) { fCounterPanel.setRunValue(fTestResult.runCount()); fProgressIndicator.step(fTestResult.runCount(), fTestResult.wasSuccessful()); } } }
public void reset() { setLabelValue(fNumberOfErrors, 0); setLabelValue(fNumberOfFailures, 0); setLabelValue(fNumberOfRuns, 0); fTotal= 0; }
public void valueChanged(TreeSelectionEvent e) { testSelected(); } }
public void actionPerformed(ActionEvent event) { terminate(); } }
public void stateChanged(ChangeEvent e) { testViewChanged(); } }
public void windowClosing(WindowEvent e) { dispose(); } }
public void valueChanged(ListSelectionEvent e) { testSelected(); } }