@@ -59,11 +59,12 @@ final class NoSummaryReport extends SummaryReporting {
59
59
* which outputs to a log file in `./testlogs/`
60
60
*/
61
61
final class SummaryReport extends SummaryReporting {
62
+ import scala .collection .JavaConversions ._
62
63
63
- private val startingMessages = mutable. ArrayBuffer .empty [String ]
64
- private val failedTests = mutable. ArrayBuffer .empty [String ]
65
- private val reproduceInstructions = mutable. ArrayBuffer .empty [String ]
66
- private val cleanUps = mutable. ArrayBuffer .empty [() => Unit ]
64
+ private val startingMessages = new java.util.concurrent. ConcurrentLinkedDeque [String ]
65
+ private val failedTests = new java.util.concurrent. ConcurrentLinkedDeque [String ]
66
+ private val reproduceInstructions = new java.util.concurrent. ConcurrentLinkedDeque [String ]
67
+ private val cleanUps = new java.util.concurrent. ConcurrentLinkedDeque [() => Unit ]
67
68
68
69
private [this ] var passed = 0
69
70
private [this ] var failed = 0
@@ -75,16 +76,16 @@ final class SummaryReport extends SummaryReporting {
75
76
passed += 1
76
77
77
78
def addFailedTest (msg : String ): Unit =
78
- failedTests.append (msg)
79
+ failedTests.add (msg)
79
80
80
81
def addReproduceInstruction (instr : String ): Unit =
81
- reproduceInstructions.append (instr)
82
+ reproduceInstructions.add (instr)
82
83
83
84
def addStartingMessage (msg : String ): Unit =
84
- startingMessages.append (msg)
85
+ startingMessages.add (msg)
85
86
86
87
def addCleanup (f : () => Unit ): Unit =
87
- cleanUps.append (f)
88
+ cleanUps.add (f)
88
89
89
90
/** Both echoes the summary to stdout and prints to file */
90
91
def echoSummary (): Unit = {
0 commit comments