1
1
package scala .collection
2
2
3
3
import org .junit .Test
4
+ import org .junit .Ignore
4
5
import org .junit .Assert .{assertEquals , _ }
5
6
import org .junit .runner .RunWith
6
7
import org .junit .runners .JUnit4
7
8
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
+
8
13
/**
9
14
* base class for testing common methods on a various implementations
10
15
*
11
16
* @tparam T the collection type
12
17
* @tparam E the element type
13
18
*/
14
19
@ RunWith (classOf [JUnit4 ])
20
+ @ Ignore
15
21
abstract class IndexedTest [T , E ] {
16
22
17
23
protected def size = 10
@@ -311,8 +317,9 @@ package IndexedTestImpl {
311
317
def toType (n : Int )= if ((n & 0 ) == 0 ) null else BoxedUnit .UNIT
312
318
}
313
319
320
+ @ Ignore
314
321
abstract class ArrayTest [E ] (
315
- // the object or primative type of the array
322
+ // the object or primitive type of the array
316
323
val TYPE : Class [_]) extends IndexedTest [Array [E ], E ]{
317
324
override final def length (underTest : Array [E ]) = underTest.length
318
325
@@ -342,8 +349,9 @@ package IndexedTestImpl {
342
349
}
343
350
344
351
352
+ @ Ignore
345
353
abstract class WrappedArrayTest [E ](
346
- // the object or primative type of the array
354
+ // the object or primitive type of the array
347
355
val TYPE : Class [_]) extends IndexedTest [mutable.WrappedArray [E ], E ] with DataProvider [E ]{
348
356
import mutable .WrappedArray
349
357
override final def length (underTest : WrappedArray [E ]) = underTest.length
@@ -375,6 +383,7 @@ package IndexedTestImpl {
375
383
376
384
// construct the data using java as much as possible to avoid invalidating the test
377
385
386
+ @ Ignore
378
387
abstract class MutableIndexedSeqTest [T <: mutable.Seq [E ], E ] extends IndexedTest [T , E ] with DataProvider [E ]{
379
388
override final def length (underTest : T ) = underTest.length
380
389
@@ -404,6 +413,7 @@ package IndexedTestImpl {
404
413
}
405
414
406
415
}
416
+ @ Ignore
407
417
abstract class ImmutableIndexedSeqTest [T <: SeqLike [E , T ], E ] extends IndexedTest [T , E ] with DataProvider [E ] {
408
418
override final def length (underTest : T ) = underTest.length
409
419
@@ -424,6 +434,7 @@ package IndexedTestImpl {
424
434
}
425
435
426
436
}
437
+ @ Ignore
427
438
abstract class StringOpsBaseTest extends IndexedTest [StringOps , Char ] with DataProvider [Char ] {
428
439
override final def length (underTest : StringOps ) = underTest.length
429
440
@@ -564,4 +575,4 @@ package IndexedTestImpl {
564
575
}
565
576
}
566
577
567
- }
578
+ }
0 commit comments