Example #1
0
 private void showFailureDetail(Test test) {
   if (test != null) {
     ListModel failures = getFailures();
     for (int i = 0; i < failures.getSize(); i++) {
       TestFailure failure = (TestFailure) failures.getElementAt(i);
       if (failure.failedTest() == test) {
         fFailureView.showFailure(failure);
         return;
       }
     }
   }
   fFailureView.clear();
 }
Example #2
0
 private void initComponents() {
   toolbar = initToolbar();
   /*
   if (inMac())
      fProgressIndicator= new MacProgressBar(fStatusLine);
   else
   */
   fProgressIndicator = new ProgressBar();
   fCounterPanel = createCounterPanel();
   fFailures = new DefaultListModel();
   fTestViewTab = createTestRunViews();
   fFailureView = createFailureDetailView();
   tracePane =
       new JScrollPane(
           fFailureView.getComponent(),
           ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
           ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
   initMinFrame();
 }
Example #3
0
 protected void reset() {
   fCounterPanel.reset();
   fProgressIndicator.reset();
   fFailureView.clear();
   fFailures.clear();
 }