@@ -69,8 +69,9 @@ class RunnerPanel implements FocusListener {
69
69
JTextArea testFailureDescriptionTextArea
70
70
JTextArea testFailureMessageTextArea
71
71
JTextArea testFailureCallerTextArea
72
- JTextArea testServerOutputTextArea
73
72
JTextArea testErrorStackTextArea
73
+ JTextArea testWarningsTextArea
74
+ JTextArea testServerOutputTextArea
74
75
75
76
def Component getGUI () {
76
77
if (basePanel == = null ) {
@@ -93,8 +94,9 @@ class RunnerPanel implements FocusListener {
93
94
testFailureDescriptionTextArea. text = null
94
95
testFailureMessageTextArea. text = null
95
96
testFailureCallerTextArea. text = null
96
- testServerOutputTextArea. text = null
97
97
testErrorStackTextArea. text = null
98
+ testWarningsTextArea. text = null
99
+ testServerOutputTextArea. text = null
98
100
}
99
101
100
102
def update (String reporterId ) {
@@ -211,8 +213,9 @@ class RunnerPanel implements FocusListener {
211
213
p. testFailureMessageTextArea. text = null
212
214
p. testFailureCallerTextArea. text = null
213
215
}
214
- p. testServerOutputTextArea. text = test. serverOutput
215
216
p. testErrorStackTextArea. text = test. errorStack
217
+ p. testWarningsTextArea. text = test. warnings
218
+ p. testServerOutputTextArea. text = test. serverOutput
216
219
}
217
220
}
218
221
}
@@ -374,7 +377,7 @@ class RunnerPanel implements FocusListener {
374
377
overviewTableTime. cellRenderer = timeFormatRenderer
375
378
val testOverviewScrollPane = new JScrollPane (testOverviewTable)
376
379
377
- // Test info tabbed pane
380
+ // Test tabbed pane (Test Properties)
378
381
// - Id
379
382
val testInfoPanel = new ScrollablePanel
380
383
testInfoPanel. setLayout(new GridBagLayout ())
@@ -565,13 +568,13 @@ class RunnerPanel implements FocusListener {
565
568
c. weightx = 0
566
569
c. weighty = 1
567
570
testInfoPanel. add(testInfoVerticalSpringLabel, c)
568
- val testInfoScrollPane = new JScrollPane (testInfoPanel)
571
+ val testPropertiesScrollPane = new JScrollPane (testInfoPanel)
569
572
570
- // failures tabbed pane (failed expectations)
573
+ // Failures tabbed pane (failed expectations)
571
574
// TODO support unbound number of failed expectations
572
575
// - description
573
- val testFailurePanel = new JPanel
574
- testFailurePanel . setLayout(new GridBagLayout ())
576
+ val testFailuresPanel = new JPanel
577
+ testFailuresPanel . setLayout(new GridBagLayout ())
575
578
val testFailureDescriptionLabel = new JLabel (" Description" )
576
579
c. gridx = 0
577
580
c. gridy = 0
@@ -582,7 +585,7 @@ class RunnerPanel implements FocusListener {
582
585
c. fill = GridBagConstraints :: NONE
583
586
c. weightx = 0
584
587
c. weighty = 0
585
- testFailurePanel . add(testFailureDescriptionLabel, c)
588
+ testFailuresPanel . add(testFailureDescriptionLabel, c)
586
589
testFailureDescriptionTextArea = new JTextArea
587
590
testFailureDescriptionTextArea. editable = false
588
591
testFailureDescriptionTextArea. enabled = true
@@ -599,7 +602,7 @@ class RunnerPanel implements FocusListener {
599
602
c. fill = GridBagConstraints :: HORIZONTAL
600
603
c. weightx = 1
601
604
c. weighty = 0
602
- testFailurePanel . add(testFailureDescriptionScrollPane, c)
605
+ testFailuresPanel . add(testFailureDescriptionScrollPane, c)
603
606
// - message
604
607
val testFailureMessageLabel = new JLabel (" Message" )
605
608
c. gridx = 0
@@ -611,7 +614,7 @@ class RunnerPanel implements FocusListener {
611
614
c. fill = GridBagConstraints :: NONE
612
615
c. weightx = 0
613
616
c. weighty = 0
614
- testFailurePanel . add(testFailureMessageLabel, c)
617
+ testFailuresPanel . add(testFailureMessageLabel, c)
615
618
testFailureMessageTextArea = new JTextArea
616
619
testFailureMessageTextArea. editable = false
617
620
testFailureMessageTextArea. enabled = true
@@ -628,7 +631,7 @@ class RunnerPanel implements FocusListener {
628
631
c. fill = GridBagConstraints :: BOTH
629
632
c. weightx = 1
630
633
c. weighty = 6
631
- testFailurePanel . add(testFailureMessageScrollPane, c)
634
+ testFailuresPanel . add(testFailureMessageScrollPane, c)
632
635
// - caller
633
636
val testFailureCallerLabel = new JLabel (" Caller" )
634
637
c. gridx = 0
@@ -640,7 +643,7 @@ class RunnerPanel implements FocusListener {
640
643
c. fill = GridBagConstraints :: NONE
641
644
c. weightx = 0
642
645
c. weighty = 0
643
- testFailurePanel . add(testFailureCallerLabel, c)
646
+ testFailuresPanel . add(testFailureCallerLabel, c)
644
647
testFailureCallerTextArea = new JTextArea
645
648
testFailureCallerTextArea. editable = false
646
649
testFailureCallerTextArea. enabled = true
@@ -657,30 +660,9 @@ class RunnerPanel implements FocusListener {
657
660
c. fill = GridBagConstraints :: BOTH
658
661
c. weightx = 1
659
662
c. weighty = 2
660
- testFailurePanel . add(testFailureCallerScrollPane, c)
663
+ testFailuresPanel . add(testFailureCallerScrollPane, c)
661
664
662
- // server output tabbed pane
663
- val testServerOutputPanel = new JPanel
664
- testServerOutputPanel. setLayout(new GridBagLayout ())
665
- testServerOutputTextArea = new JTextArea
666
- testServerOutputTextArea. editable = false
667
- testServerOutputTextArea. enabled = true
668
- testServerOutputTextArea. lineWrap = true
669
- testServerOutputTextArea. wrapStyleWord = true
670
- testServerOutputTextArea. addFocusListener(this )
671
- val testServerOutputScrollPane = new JScrollPane (testServerOutputTextArea)
672
- c. gridx = 0
673
- c. gridy = 0
674
- c. gridwidth = 1
675
- c. gridheight = 1
676
- c. insets = new Insets (10 , 10 , 10 , 10 ) // top, left, bottom, right
677
- c. anchor = GridBagConstraints :: WEST
678
- c. fill = GridBagConstraints :: BOTH
679
- c. weightx = 1
680
- c. weighty = 1
681
- testServerOutputPanel. add(testServerOutputScrollPane, c)
682
-
683
- // error stack tabbed pane
665
+ // Errors tabbed pane (Error Stack)
684
666
val testErrorStackPanel = new JPanel
685
667
testErrorStackPanel. setLayout(new GridBagLayout ())
686
668
testErrorStackTextArea = new JTextArea
@@ -700,13 +682,56 @@ class RunnerPanel implements FocusListener {
700
682
c. weightx = 1
701
683
c. weighty = 1
702
684
testErrorStackPanel. add(testErrorStackScrollPane, c)
685
+
686
+ // Warnings tabbed pane
687
+ val testWarningsPanel = new JPanel
688
+ testWarningsPanel. setLayout(new GridBagLayout ())
689
+ testWarningsTextArea = new JTextArea
690
+ testWarningsTextArea. editable = false
691
+ testWarningsTextArea. enabled = true
692
+ testWarningsTextArea. lineWrap = true
693
+ testWarningsTextArea. wrapStyleWord = true
694
+ testWarningsTextArea. addFocusListener(this )
695
+ val testWarningsScrollPane = new JScrollPane (testWarningsTextArea)
696
+ c. gridx = 0
697
+ c. gridy = 0
698
+ c. gridwidth = 1
699
+ c. gridheight = 1
700
+ c. insets = new Insets (10 , 10 , 10 , 10 ) // top, left, bottom, right
701
+ c. anchor = GridBagConstraints :: WEST
702
+ c. fill = GridBagConstraints :: BOTH
703
+ c. weightx = 1
704
+ c. weighty = 1
705
+ testWarningsPanel. add(testWarningsScrollPane, c)
706
+
707
+ // Info tabbed pane (Server Output)
708
+ val testServerOutputPanel = new JPanel
709
+ testServerOutputPanel. setLayout(new GridBagLayout ())
710
+ testServerOutputTextArea = new JTextArea
711
+ testServerOutputTextArea. editable = false
712
+ testServerOutputTextArea. enabled = true
713
+ testServerOutputTextArea. lineWrap = true
714
+ testServerOutputTextArea. wrapStyleWord = true
715
+ testServerOutputTextArea. addFocusListener(this )
716
+ val testServerOutputScrollPane = new JScrollPane (testServerOutputTextArea)
717
+ c. gridx = 0
718
+ c. gridy = 0
719
+ c. gridwidth = 1
720
+ c. gridheight = 1
721
+ c. insets = new Insets (10 , 10 , 10 , 10 ) // top, left, bottom, right
722
+ c. anchor = GridBagConstraints :: WEST
723
+ c. fill = GridBagConstraints :: BOTH
724
+ c. weightx = 1
725
+ c. weighty = 1
726
+ testServerOutputPanel. add(testServerOutputScrollPane, c)
703
727
704
728
// split pane with all tabs
705
729
val testDetailTabbedPane = new JTabbedPane ()
706
- testDetailTabbedPane. add(" Info" , testInfoScrollPane)
707
- testDetailTabbedPane. add(" Failures" , testFailurePanel)
708
- testDetailTabbedPane. add(" Server Output" , testServerOutputPanel)
709
- testDetailTabbedPane. add(" Error Stack" , testErrorStackPanel)
730
+ testDetailTabbedPane. add(" Test" , testPropertiesScrollPane)
731
+ testDetailTabbedPane. add(" Failures" , testFailuresPanel)
732
+ testDetailTabbedPane. add(" Errors" , testErrorStackPanel)
733
+ testDetailTabbedPane. add(" Warnings" , testWarningsPanel)
734
+ testDetailTabbedPane. add(" Info" , testServerOutputPanel)
710
735
val horizontalSplitPane = new JSplitPane (SwingConstants . HORIZONTAL , testOverviewScrollPane, testDetailTabbedPane)
711
736
horizontalSplitPane. resizeWeight = 0.5
712
737
c. gridx = 0
0 commit comments