1
1
package scala .collection
2
2
3
3
import org .junit .Test
4
- import org .junit .Ignore
5
- import org .junit .Assert .{assertEquals , _ }
4
+ import org .junit .Assert ._
6
5
import org .junit .runner .RunWith
7
6
import org .junit .runners .JUnit4
8
7
9
- // with the Ant JUnit runner, it's necessary to @Ignore the abstract
10
- // classes here, or JUnit tries to instantiate them. the annotations
11
- // can be removed when this is merged forward (TODO 2.12.x)
12
-
13
8
/**
14
9
* base class for testing common methods on a various implementations
15
10
*
16
11
* @tparam T the collection type
17
12
* @tparam E the element type
18
13
*/
19
14
@ RunWith (classOf [JUnit4 ])
20
- @ Ignore
21
15
abstract class IndexedTest [T , E ] {
22
16
23
17
protected def size = 10
@@ -317,7 +311,6 @@ package IndexedTestImpl {
317
311
def toType (n : Int )= if ((n & 0 ) == 0 ) null else BoxedUnit .UNIT
318
312
}
319
313
320
- @ Ignore
321
314
abstract class ArrayTest [E ] (
322
315
// the object or primitive type of the array
323
316
val TYPE : Class [_]) extends IndexedTest [Array [E ], E ]{
@@ -348,8 +341,6 @@ package IndexedTestImpl {
348
341
}
349
342
}
350
343
351
-
352
- @ Ignore
353
344
abstract class ArraySeqTest [E ](
354
345
// the object or primitive type of the array
355
346
val TYPE : Class [_]) extends IndexedTest [mutable.ArraySeq [E ], E ] with DataProvider [E ]{
@@ -383,7 +374,6 @@ package IndexedTestImpl {
383
374
384
375
// construct the data using java as much as possible to avoid invalidating the test
385
376
386
- @ Ignore
387
377
abstract class MutableIndexedSeqTest [T <: mutable.Seq [E ], E ] extends IndexedTest [T , E ] with DataProvider [E ]{
388
378
override final def length (underTest : T ) = underTest.length
389
379
@@ -413,7 +403,7 @@ package IndexedTestImpl {
413
403
}
414
404
415
405
}
416
- @ Ignore
406
+
417
407
abstract class ImmutableIndexedSeqTest [T <: SeqOps [E , Seq , T ], E ] extends IndexedTest [T , E ] with DataProvider [E ] {
418
408
override final def length (underTest : T ) = underTest.length
419
409
@@ -434,7 +424,7 @@ package IndexedTestImpl {
434
424
}
435
425
436
426
}
437
- @ Ignore
427
+
438
428
abstract class StringOpsBaseTest extends IndexedTest [StringOps , Char ] with DataProvider [Char ] {
439
429
override final def length (underTest : StringOps ) = underTest.size
440
430
0 commit comments