org.specs.runner.ExamplesTestSuite

class ExamplesTestSuite

class ExamplesTestSuite(description : String, examples : Iterable[Example], skipped : Option[Throwable])

 extends JUnitSuite with Classes


A ExamplesTestSuite is a JUnitSuite reporting the results of a System under test (sus) as a list of examples, represented by ExampleTestCase objects. If an example has subExamples, they are reported with a separate ExamplesTestSuite


Source: JUnit.scala(107)

 Constructors

def this(description : String, examples : Iterable[Example], skipped : Option[Throwable])

 Fields

getName def getName
[details]
return
- the name of the embedded suite
String JUnitSuite
isExecutedFromMaven lazy val isExecutedFromMaven Boolean
suites def suites
[details]
return
- the test suites of the embedded suite
List[Test] JUnitSuite
testCases def testCases
[details]
return
- the test cases of the embedded suite
List[Test] JUnitSuite
testSuite val testSuite
embedded JUnit3 TestSuite object
TestSuite JUnitSuite
tests def tests
[details]
return
- the tests of the embedded suite (suites and test cases)
List[Test] JUnitSuite

 Methods

!= final def !=(arg0 : Object) Boolean AnyRef
!= final def !=(arg0 : Any) Boolean Any
== final def ==(arg0 : Any) Boolean Any
== final def ==(arg0 : Object) Boolean AnyRef
addTest def addTest(t : Test)
add a new test to the embedded suite
Unit JUnitSuite
asInstanceOf final def asInstanceOf[T0] T0 Any
clone protected def clone Object AnyRef
countTestCases def countTestCases
[details]
return
- the number of tests of the embedded suite (suites and test cases)
Int JUnitSuite
eq final def eq(arg0 : Object) Boolean AnyRef
equals def equals(arg0 : Any) Boolean AnyRef
finalize protected def finalize Unit AnyRef
getClass final def getClass Class[Object] AnyRef
hashCode def hashCode Int AnyRef
init def init
the init method is called before any "getter" method is called [details]
Then it initializes the object if it hasn't been done before
Unit JUnitSuite
initialize def initialize
create one TestCase per example and a new ExamplesTestSuite for the sub-examples
Unit
isExecutedFrom def isExecutedFrom(name : String)
This method is used to determine for example if the JUnit runner is executed from Maven or within Eclipse [details]
In the first the test case names don't need to have the hashcode example.
return
- true if the this current piece of code contains name in its stacktrace.
Boolean Classes
isInstanceOf final def isInstanceOf[T0] Boolean Any
ne final def ne(arg0 : Object) Boolean AnyRef
notify final def notify Unit AnyRef
notifyAll final def notifyAll Unit AnyRef
run override def run(result : TestResult)
runs the set of exemplesA ExamplesTestSuite is a JUnitSuite reporting the results of a list of examples [details]
If an example has subExamples, they are reported with a separate ExamplesTestSuite If the list of examples is skipped (because the corresponding sus is skipped), then a SkippedAssertionError failure is sent and the JUnitSuiteRunner will interpret this as an ignored test (this functionality wasn't available in JUnit3)
Unit
setName def setName(n : String)
set the name of the embedded suite
Unit JUnitSuite
synchronized final def synchronized[T0](arg0 : T0) T0 AnyRef
toString def toString String AnyRef
wait final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait final def wait(arg0 : Long) Unit AnyRef
wait final def wait Unit AnyRef
Copyright (c) 2007-2009. All Rights Reserved.