Class: matlab.unittest.TestCase
Package: matlab.unittest
Use fixture with TestCase
applyFixture(
prepares the specified fixture for use with the testCase
,fixture
)TestCase
. This
method enables the use of a fixture within the scope of a single
Test
method or TestCase
class. The life
cycle of the fixture is tied to the TestCase
. When the
TestCase
goes out of scope, the testing framework tears down
the fixture.
Call applyFixture
within a Test
method or
TestMethodSetup
method to use a fixture for the current test
method alone. Use applyFixture
within a
TestClassSetup
method to set up a fixture for the entire
class.
|
|
|
|