UnitFixture
org.scalatest.fixture.UnitFixture
trait UnitFixture
Trait that when mixed into a FixtureSuite
passes the unit value as a fixture into each test.
Since a unit value is unlikely to be of much use to a test, this trait is useful when the unit value fixture is actually never passed into any tests. Instead each test in the FixtureSuite
is defined as a no-arg function; no tests are defined as one-arg functions. This should be quite rare, but occasionally can be useful. For an example, see the main documentation for trait NoArg
.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Members list
In this article