Class

org.scalatest.junit

JUnitWrapperSuite

Related Doc: package junit

Permalink

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.

Linear Supertypes
Suite, Serializable, Serializable, Assertions, TripleEquals, TripleEqualsSupport, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JUnitWrapperSuite
  2. Suite
  3. Serializable
  4. Serializable
  5. Assertions
  6. TripleEquals
  7. TripleEqualsSupport
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JUnitWrapperSuite(junitClassName: String, loader: ClassLoader)

    Permalink

    junitClassName

    Fully qualified name of the JUnit suite

    loader

    Class loader to load the JUnit suite

Type Members

  1. class AssertionsHelper extends AnyRef

    Permalink
    Definition Classes
    Assertions
  2. class CheckingEqualizer[L] extends AnyRef

    Permalink
    Definition Classes
    TripleEqualsSupport
  3. class Equalizer[L] extends AnyRef

    Permalink
    Definition Classes
    TripleEqualsSupport
  4. trait NoArgTest extends () ⇒ Outcome with TestData

    Permalink
    Attributes
    protected
    Definition Classes
    Suite

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. def !==[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  3. def !==(right: Null): TripleEqualsInvocation[Null]

    Permalink
    Definition Classes
    TripleEqualsSupport
  4. def !==[T](right: T): TripleEqualsInvocation[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  5. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. def ===[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  8. def ===(right: Null): TripleEqualsInvocation[Null]

    Permalink
    Definition Classes
    TripleEqualsSupport
  9. def ===[T](right: T): TripleEqualsInvocation[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. macro def assert(condition: Boolean, clue: Any): Assertion

    Permalink
    Definition Classes
    Assertions
  12. macro def assert(condition: Boolean): Assertion

    Permalink
    Definition Classes
    Assertions
  13. macro def assertCompiles(code: String): Assertion

    Permalink
    Definition Classes
    Assertions
  14. macro def assertDoesNotCompile(code: String): Assertion

    Permalink
    Definition Classes
    Assertions
  15. def assertResult(expected: Any)(actual: Any): Assertion

    Permalink
    Definition Classes
    Assertions
  16. def assertResult(expected: Any, clue: Any)(actual: Any): Assertion

    Permalink
    Definition Classes
    Assertions
  17. def assertThrows[T <: AnyRef](f: ⇒ Any)(implicit classTag: ClassTag[T]): Assertion

    Permalink
    Definition Classes
    Assertions
  18. macro def assertTypeError(code: String): Assertion

    Permalink
    Definition Classes
    Assertions
  19. val assertionsHelper: AssertionsHelper

    Permalink
    Definition Classes
    Assertions
  20. macro def assume(condition: Boolean, clue: Any): Assertion

    Permalink
    Definition Classes
    Assertions
  21. macro def assume(condition: Boolean): Assertion

    Permalink
    Definition Classes
    Assertions
  22. def cancel(cause: Throwable): Nothing

    Permalink
    Definition Classes
    Assertions
  23. def cancel(message: String, cause: Throwable): Nothing

    Permalink
    Definition Classes
    Assertions
  24. def cancel(message: String): Nothing

    Permalink
    Definition Classes
    Assertions
  25. def cancel(): Nothing

    Permalink
    Definition Classes
    Assertions
  26. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def conversionCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], cnv: (B) ⇒ A): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  28. def convertEquivalenceToAToBConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: <:<[A, B]): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  29. def convertEquivalenceToAToBConversionConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: (A) ⇒ B): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  30. def convertEquivalenceToBToAConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: <:<[B, A]): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  31. def convertEquivalenceToBToAConversionConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: (B) ⇒ A): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  32. def convertToCheckingEqualizer[T](left: T): CheckingEqualizer[T]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  33. implicit def convertToEqualizer[T](left: T): Equalizer[T]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  34. def defaultEquality[A]: Equality[A]

    Permalink
    Definition Classes
    TripleEqualsSupport
  35. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  36. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  37. final def execute: Unit

    Permalink
    Definition Classes
    Suite
  38. final def execute(testName: String, configMap: ConfigMap, color: Boolean, durations: Boolean, shortstacks: Boolean, fullstacks: Boolean, stats: Boolean): Unit

    Permalink
    Definition Classes
    Suite
  39. def expectedTestCount(filter: Filter): Int

    Permalink

    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 Filter with which to filter tests to count based on their tags

    returns

    number of expected test count

    Definition Classes
    JUnitWrapperSuite → Suite
  40. def fail(cause: Throwable): Nothing

    Permalink
    Definition Classes
    Assertions
  41. def fail(message: String, cause: Throwable): Nothing

    Permalink
    Definition Classes
    Assertions
  42. def fail(message: String): Nothing

    Permalink
    Definition Classes
    Assertions
  43. def fail(): Nothing

    Permalink
    Definition Classes
    Assertions
  44. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  45. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  46. def getRequest(): Request

    Permalink

    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

  47. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  48. def intercept[T <: AnyRef](f: ⇒ Any)(implicit classTag: ClassTag[T]): T

    Permalink
    Definition Classes
    Assertions
  49. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  50. def lowPriorityConversionCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], cnv: (A) ⇒ B): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  51. def lowPriorityTypeCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], ev: <:<[A, B]): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  52. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  53. def nestedSuites: IndexedSeq[Suite]

    Permalink
    Definition Classes
    Suite
  54. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  55. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  56. def pending: Assertion with PendingStatement

    Permalink
    Definition Classes
    Assertions
  57. def pendingUntilFixed(f: ⇒ Unit): Assertion with PendingStatement

    Permalink
    Definition Classes
    Assertions
  58. def rerunner: Option[String]

    Permalink
    Definition Classes
    Suite
  59. def run(testName: Option[String], args: Args): Status

    Permalink

    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., None acts like a wildcard that means run all relevant tests in this Suite.

    args

    the Args for this run

    returns

    a Status object 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
  60. final def runNestedSuites(args: Args): Status

    Permalink

    Throws UnsupportedOperationException, because this method is unused by this class, given this class's run method delegates to JUnit to run its tests.

    Throws UnsupportedOperationException, because this method is unused by this class, given this class's run method 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 use runNestedSuites, the attempt to mix in behavior would very likely not work.

    args

    the Args for this run

    Attributes
    protected
    Definition Classes
    JUnitWrapperSuite → Suite
    Exceptions thrown

    UnsupportedOperationException always.

  61. final def runTest(testName: String, args: Args): Status

    Permalink

    Throws UnsupportedOperationException, because this method is unused by this class, given this class's run method delegates to JUnit to run its tests.

    Throws UnsupportedOperationException, because this method is unused by this class, given this class's run method 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 use runTest, the attempt to mix in behavior would very likely not work.

    testName

    the name of one test to run.

    args

    the Args for this run

    Attributes
    protected
    Definition Classes
    JUnitWrapperSuite → Suite
    Exceptions thrown

    UnsupportedOperationException always.

  62. final def runTests(testName: Option[String], args: Args): Status

    Permalink

    Throws UnsupportedOperationException, because this method is unused by this class, given this class's run method delegates to JUnit to run its tests.

    Throws UnsupportedOperationException, because this method is unused by this class, given this class's run method 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 use runTests, 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., None acts like a wildcard that means run all relevant tests in this Suite.

    args

    the Args for this run

    Attributes
    protected
    Definition Classes
    JUnitWrapperSuite → Suite
    Exceptions thrown

    UnsupportedOperationException always.

  63. val styleName: String

    Permalink
    Definition Classes
    Suite
  64. final val succeed: Succeeded.type

    Permalink
    Definition Classes
    Assertions
  65. def suiteId: String

    Permalink
    Definition Classes
    Suite
  66. def suiteName: String

    Permalink
    Definition Classes
    Suite
  67. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  68. def tags: Map[String, Set[String]]

    Permalink
    Definition Classes
    Suite
  69. def testDataFor(testName: String, theConfigMap: ConfigMap): TestData

    Permalink
    Definition Classes
    Suite
  70. def testNames: Set[String]

    Permalink
    Definition Classes
    Suite
  71. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  72. def trap[T](f: ⇒ T): Throwable

    Permalink
    Definition Classes
    Assertions
  73. def typeCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], ev: <:<[B, A]): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  74. implicit def unconstrainedEquality[A, B](implicit equalityOfA: Equality[A]): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  75. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  76. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  77. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  78. def withClue[T](clue: Any)(fun: ⇒ T): T

    Permalink
    Definition Classes
    Assertions
  79. final def withFixture(test: NoArgTest): Outcome

    Permalink

    Throws UnsupportedOperationException, because this method is unused by this class, given this class's run method delegates to JUnit to run its tests.

    Throws UnsupportedOperationException, because this method is unused by this class, given this class's run method 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 withFixture. Because this trait does not actually use withFixture, the attempt to mix in behavior would very likely not work.

    test

    the no-arg test function to run with a fixture

    Attributes
    protected
    Definition Classes
    JUnitWrapperSuite → Suite

Inherited from Suite

Inherited from Serializable

Inherited from Serializable

Inherited from Assertions

Inherited from TripleEquals

Inherited from TripleEqualsSupport

Inherited from AnyRef

Inherited from Any

Ungrouped