abstract class FutureFixture[T] extends AnyFixture[T]
FutureFixture allows you to acquire resources during setup and clean up resources after the tests finish running.
Fixtures can be local to a single test case by overriding beforeEach
and
afterEach
, or they can be re-used for an entire test suite by extending
beforeAll
and afterAll
.
There is no functional difference between extending FutureFixture[T]
or
AnyFixture[T]
. The only difference is that an IDE will auto-complete
Future[Unit]
in the result type instead of Any
.
- See also
https://scalameta.org/munit/docs/fixtures.html
- Alphabetic
- By Inheritance
- FutureFixture
- AnyFixture
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new FutureFixture(name: String)
Abstract Value Members
-
abstract
def
apply(): T
The value produced by this suite-local fixture that can be reused for all test cases.
The value produced by this suite-local fixture that can be reused for all test cases.
- Definition Classes
- AnyFixture
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
afterAll(): Future[Unit]
Runs once after the test suite has finished, regardless if the tests failed or not.
Runs once after the test suite has finished, regardless if the tests failed or not.
- Definition Classes
- FutureFixture → AnyFixture
-
def
afterEach(context: AfterEach): Future[Unit]
Runs after each individual test case.
Runs after each individual test case.
- Definition Classes
- FutureFixture → AnyFixture
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
beforeAll(): Future[Unit]
Runs once before the test suite starts
Runs once before the test suite starts
- Definition Classes
- FutureFixture → AnyFixture
-
def
beforeEach(context: BeforeEach): Future[Unit]
Runs before each individual test case.
Runs before each individual test case. An error in this method aborts the test case.
- Definition Classes
- FutureFixture → AnyFixture
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
val
fixtureName: String
- Definition Classes
- AnyFixture
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
- @throws( ... ) @native()