org.scalatest.junit

JUnitWrapperSuite

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.

    authors:
  1. George Berger

  2. ,
  3. Joel Neely

  4. ,
  5. Daniel Watson

  6. ,
  7. Bill Venners

Inherited
  1. Hide All
  2. Show all
  1. Suite
  2. AbstractSuite
  3. Assertions
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Instance constructors

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

Type Members

  1. class Equalizer extends AnyRef

    Class used via an implicit conversion to enable any two objects to be compared with=== in assertions in tests.

  2. trait NoArgTest extends () ⇒ Unit

    A test function taking no arguments, which also provides a test name and config map.

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  8. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  9. def assert(o: Option[String]): Unit

    Assert that an Option[String] is None.

  10. def assert(o: Option[String], clue: Any): Unit

    Assert that an Option[String] is None.

  11. def assert(condition: Boolean, clue: Any): Unit

    Assert that a boolean condition, described in Stringmessage, is true.

  12. def assert(condition: Boolean): Unit

    Assert that a boolean condition is true.

  13. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

  14. implicit def convertToEqualizer(left: Any): Equalizer

    Implicit conversion from Any to Equalizer, used to enable assertions with === comparisons.

  15. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  16. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

  17. def execute(testName: String, configMap: Map[String, Any]): Unit

    Executes the test specified as testName in this Suite with the specified configMap, printing results to the standard output.

  18. def execute(testName: String): Unit

    Executes the test specified as testName in this Suite, printing results to the standard output.

  19. def execute(configMap: Map[String, Any]): Unit

    Executes this Suite with the specified configMap, printing results to the standard output.

  20. def execute(): Unit

    Executes this Suite, printing results to the standard output.

  21. def expect(expected: Any)(actual: Any): Unit

    Expect that the value passed as expected equals the value passed as actual.

  22. def expect(expected: Any, clue: Any)(actual: Any): Unit

    Expect that the value passed as expected equals the value passed as actual.

  23. def expectedTestCount(filter: Filter): Int

    The total number of tests that are expected to run when this Suite's run method is invoked.

  24. def fail(cause: Throwable): Nothing

    Throws TestFailedException, with the passedThrowable cause, to indicate a test failed.

  25. def fail(message: String, cause: Throwable): Nothing

    Throws TestFailedException, with the passedString message as the exception's detail message and Throwable cause, to indicate a test failed.

  26. def fail(message: String): Nothing

    Throws TestFailedException, with the passedString message as the exception's detail message, to indicate a test failed.

  27. def fail(): Nothing

    Throws TestFailedException to indicate a test failed.

  28. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  29. def getClass(): java.lang.Class[_]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  30. def getRequest(): Request

  31. def groups: Map[String, Set[String]]

    The groups methods has been deprecated and will be removed in a future version of ScalaTest.

  32. def hashCode(): Int

    Returns a hash code value for the object.

  33. def intercept[T <: AnyRef](f: ⇒ Any)(implicit manifest: Manifest[T]): T

    Intercept and return an exception that's expected to be thrown by the passed function value.

  34. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  35. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  36. def nestedSuites: List[Suite]

    A List of this Suite object's nested Suites.

  37. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  38. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  39. def pending: PendingNothing

    Throws TestPendingException to indicate a test is pending.

  40. def pendingUntilFixed(f: ⇒ Unit): Unit

    Execute the passed block of code, and if it completes abruptly, throw TestPendingException, else throw TestFailedException.

  41. def run(testName: Option[String], report: Reporter, stopper: Stopper, filter: Filter, config: Map[String, Any], distributor: Option[Distributor], tracker: Tracker): Unit

    Runs this suite of tests.

  42. def runNestedSuites(reporter: Reporter, stopper: Stopper, filter: Filter, configMap: Map[String, Any], distributor: Option[Distributor], tracker: Tracker): Unit

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

  43. def runTest(testName: String, reporter: Reporter, stopper: Stopper, configMap: Map[String, Any], tracker: Tracker): Unit

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

  44. def runTests(testName: Option[String], reporter: Reporter, stopper: Stopper, filter: Filter, configMap: Map[String, Any], distributor: Option[Distributor], tracker: Tracker): Unit

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

  45. def suiteName: String

    A user-friendly suite name for this Suite.

  46. def synchronized[T0](arg0: T0): T0

  47. def tags: Map[String, Set[String]]

    A Map whose keys are String tag names with which tests in this Suite are marked, and whose values are the Set of test names marked with each tag.

  48. def testNames: Set[String]

    An Set of test names.

  49. def toString(): String

    Returns a string representation of the object.

  50. def wait(): Unit

  51. def wait(arg0: Long, arg1: Int): Unit

  52. def wait(arg0: Long): Unit

  53. def withClue(clue: Any)(fun: ⇒ Unit): Unit

    Executes the block of code passed as the second parameter, and, if it completes abruptly with a ModifiableMessage exception, prepends the "clue" string passed as the first parameter to the beginning of the detail message of that thrown exception, then rethrows it.

  54. def withFixture(test: NoArgTest): Unit

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