class JUnitWrapperSuite extends Suite
A wrapper to allow JUnit tests to be run by the ScalaTest runner.
Instances of this trait are not thread safe.
- Alphabetic
- By Inheritance
- JUnitWrapperSuite
- Suite
- Serializable
- Serializable
- Assertions
- TripleEquals
- TripleEqualsSupport
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- 
      
      
      
        
      
    
      
        
        new
      
      
        JUnitWrapperSuite(junitClassName: String, loader: ClassLoader)
      
      
      - junitClassName
- Fully qualified name of the JUnit suite 
- loader
- Class loader to load the JUnit suite 
 
Type Members
Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        !==[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]
      
      
      - Definition Classes
- TripleEqualsSupport
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        !==(right: Null): TripleEqualsInvocation[Null]
      
      
      - Definition Classes
- TripleEqualsSupport
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        !==[T](right: T): TripleEqualsInvocation[T]
      
      
      - Definition Classes
- TripleEqualsSupport
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        ===[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]
      
      
      - Definition Classes
- TripleEqualsSupport
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        ===(right: Null): TripleEqualsInvocation[Null]
      
      
      - Definition Classes
- TripleEqualsSupport
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        ===[T](right: T): TripleEqualsInvocation[T]
      
      
      - Definition Classes
- TripleEqualsSupport
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        macro 
        def
      
      
        assert(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        macro 
        def
      
      
        assert(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        macro 
        def
      
      
        assertCompiles(code: String)(implicit pos: Position): Assertion
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        macro 
        def
      
      
        assertDoesNotCompile(code: String)(implicit pos: Position): Assertion
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        assertResult(expected: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        assertResult(expected: Any, clue: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        assertThrows[T <: AnyRef](f: ⇒ Any)(implicit classTag: ClassTag[T], pos: Position): Assertion
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        macro 
        def
      
      
        assertTypeError(code: String)(implicit pos: Position): Assertion
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        macro 
        def
      
      
        assume(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        macro 
        def
      
      
        assume(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        cancel(cause: Throwable)(implicit pos: Position): Nothing
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        cancel(message: String, cause: Throwable)(implicit pos: Position): Nothing
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        cancel(message: String)(implicit pos: Position): Nothing
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        cancel()(implicit pos: Position): Nothing
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        convertEquivalenceToAToBConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: <:<[A, B]): CanEqual[A, B]
      
      
      - Definition Classes
- TripleEquals → TripleEqualsSupport
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        convertEquivalenceToBToAConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: <:<[B, A]): CanEqual[A, B]
      
      
      - Definition Classes
- TripleEquals → TripleEqualsSupport
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        convertToCheckingEqualizer[T](left: T): CheckingEqualizer[T]
      
      
      - Definition Classes
- TripleEquals → TripleEqualsSupport
 
- 
      
      
      
        
      
    
      
        implicit 
        def
      
      
        convertToEqualizer[T](left: T): Equalizer[T]
      
      
      - Definition Classes
- TripleEquals → TripleEqualsSupport
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        defaultEquality[A]: Equality[A]
      
      
      - Definition Classes
- TripleEqualsSupport
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        execute(testName: String, configMap: ConfigMap, color: Boolean, durations: Boolean, shortstacks: Boolean, fullstacks: Boolean, stats: Boolean): Unit
      
      
      - Definition Classes
- Suite
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        expectedTestCount(filter: Filter): Int
      
      
      Overrides to use JUnit's API to retrieve the expected test count. Overrides to use JUnit's API to retrieve the expected test count. - filter
- a - Filterwith which to filter tests to count based on their tags
- returns
- number of expected test count 
 - Definition Classes
- JUnitWrapperSuite → Suite
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        fail(cause: Throwable)(implicit pos: Position): Nothing
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        fail(message: String, cause: Throwable)(implicit pos: Position): Nothing
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        fail(message: String)(implicit pos: Position): Nothing
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        fail()(implicit pos: Position): Nothing
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        getRequest(): Request
      
      
      Retrieves a JUnit4 Request object for the junit test class. Retrieves a JUnit4 Request object for the junit test class. The JUnit Request.classes() method has different signatures in different versions of JUnit4, so reflection is used here to identify and use whichever version is available in the junit jar on the user's classpath. - returns
- JUnit4 Request object for the junit test class 
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        intercept[T <: AnyRef](f: ⇒ Any)(implicit classTag: ClassTag[T], pos: Position): T
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        lowPriorityTypeCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], ev: <:<[A, B]): CanEqual[A, B]
      
      
      - Definition Classes
- TripleEquals → TripleEqualsSupport
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        nestedSuites: IndexedSeq[Suite]
      
      
      - Definition Classes
- Suite
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        pending: Assertion with PendingStatement
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        pendingUntilFixed(f: ⇒ Unit)(implicit pos: Position): Assertion with PendingStatement
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        rerunner: Option[String]
      
      
      - Definition Classes
- Suite
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        run(testName: Option[String], args: Args): Status
      
      
      Overrides to use JUnit to run the tests. Overrides to use JUnit to run the tests. - testName
- an optional name of one test to run. If - None, all relevant tests should be run. I.e.,- Noneacts like a wildcard that means run all relevant tests in this- Suite.
- args
- the - Argsfor this run
- returns
- a - Statusobject that indicates when all tests and nested suites started by this method have completed, and whether or not a failure occurred.
 - Definition Classes
- JUnitWrapperSuite → Suite
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        runNestedSuites(args: Args): Status
      
      
      Throws UnsupportedOperationException, because this method is unused by this class, given this class'srunmethod delegates to JUnit to run its tests.Throws UnsupportedOperationException, because this method is unused by this class, given this class'srunmethod delegates to JUnit to run its tests.The main purpose of this method implementation is to render a compiler error an attempt to mix in a trait that overrides runNestedSuites. Because this trait does not actually userunNestedSuites, the attempt to mix in behavior would very likely not work.- args
- the - Argsfor this run
 - Attributes
- protected
- Definition Classes
- JUnitWrapperSuite → Suite
- Exceptions thrown
- UnsupportedOperationExceptionalways.
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        runTest(testName: String, args: Args): Status
      
      
      Throws UnsupportedOperationException, because this method is unused by this class, given this class'srunmethod delegates to JUnit to run its tests.Throws UnsupportedOperationException, because this method is unused by this class, given this class'srunmethod delegates to JUnit to run its tests.The main purpose of this method implementation is to render a compiler error an attempt to mix in a trait that overrides runTest. Because this trait does not actually userunTest, the attempt to mix in behavior would very likely not work.- testName
- the name of one test to run. 
- args
- the - Argsfor this run
 - Attributes
- protected
- Definition Classes
- JUnitWrapperSuite → Suite
- Exceptions thrown
- UnsupportedOperationExceptionalways.
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        runTests(testName: Option[String], args: Args): Status
      
      
      Throws UnsupportedOperationException, because this method is unused by this class, given this class'srunmethod delegates to JUnit to run its tests.Throws UnsupportedOperationException, because this method is unused by this class, given this class'srunmethod delegates to JUnit to run its tests.The main purpose of this method implementation is to render a compiler error an attempt to mix in a trait that overrides runTests. Because this trait does not actually userunTests, the attempt to mix in behavior would very likely not work.- testName
- an optional name of one test to run. If - None, all relevant tests should be run. I.e.,- Noneacts like a wildcard that means run all relevant tests in this- Suite.
- args
- the - Argsfor this run
 - Attributes
- protected
- Definition Classes
- JUnitWrapperSuite → Suite
- Exceptions thrown
- UnsupportedOperationExceptionalways.
 
- 
      
      
      
        
      
    
      
        final 
        val
      
      
        succeed: Assertion
      
      
      - Definition Classes
- Assertions
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        suiteId: String
      
      
      - Definition Classes
- Suite
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        suiteName: String
      
      
      - Definition Classes
- Suite
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        tags: Map[String, Set[String]]
      
      
      - Definition Classes
- Suite
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        testDataFor(testName: String, theConfigMap: ConfigMap): TestData
      
      
      - Definition Classes
- Suite
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        testNames: Set[String]
      
      
      - Definition Classes
- Suite
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        typeCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], ev: <:<[B, A]): CanEqual[A, B]
      
      
      - Definition Classes
- TripleEquals → TripleEqualsSupport
 
- 
      
      
      
        
      
    
      
        implicit 
        def
      
      
        unconstrainedEquality[A, B](implicit equalityOfA: Equality[A]): CanEqual[A, B]
      
      
      - Definition Classes
- TripleEquals → TripleEqualsSupport
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        withClue[T](clue: Any)(fun: ⇒ T): T
      
      
      - Definition Classes
- Assertions
 
Deprecated Value Members
- 
      
      
      
        
      
    
      
        
        def
      
      
        conversionCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], cnv: (B) ⇒ A): CanEqual[A, B]
      
      
      - Definition Classes
- TripleEquals → TripleEqualsSupport
- Annotations
- @deprecated
- Deprecated
- (Since version 3.1.0) The conversionCheckedConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced. 
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        convertEquivalenceToAToBConversionConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: (A) ⇒ B): CanEqual[A, B]
      
      
      - Definition Classes
- TripleEquals → TripleEqualsSupport
- Annotations
- @deprecated
- Deprecated
- (Since version 3.1.0) The convertEquivalenceToAToBConversionConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced. 
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        convertEquivalenceToBToAConversionConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: (B) ⇒ A): CanEqual[A, B]
      
      
      - Definition Classes
- TripleEquals → TripleEqualsSupport
- Annotations
- @deprecated
- Deprecated
- (Since version 3.1.0) The convertEquivalenceToBToAConversionConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced. 
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        lowPriorityConversionCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], cnv: (A) ⇒ B): CanEqual[A, B]
      
      
      - Definition Classes
- TripleEquals → TripleEqualsSupport
- Annotations
- @deprecated
- Deprecated
- (Since version 3.1.0) The lowPriorityConversionCheckedConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced. 
 
- 
      
      
      
        
      
    
      
        
        val
      
      
        styleName: String
      
      
      - Definition Classes
- Suite
- Annotations
- @deprecated
- Deprecated
- (Since version 3.1.0) The styleName lifecycle method has been deprecated and will be removed in a future version of ScalaTest with no replacement.