applyFixture
Class: matlab.unittest.fixtures.Fixture
Namespace: matlab.unittest.fixtures
Set up fixture to delegate work to another fixture
Description
applyFixture(
sets up fixture1
,fixture2
)fixture2
for use with fixture1
. To
delegate work to fixture2
, call this method from the
setup
method of fixture1
.
The applyFixture
method ties the lifecycle of
fixture2
to the lifecycle of fixture1
.
When the testing framework tears down fixture1
, it also tears
down fixture2
.
Input Arguments
Examples
Version History
Introduced in R2016a