-
- All Implemented Interfaces:
-
org.junit.rules.TestRule
public final class TestCaseRule extends BaseTestCaseRule<Unit, Unit>
The base class for all test cases. Extend this class with a single base project-wide inheritor of com.kaspersky.kaspresso.testcases.api.testcase.TestCase as a parent for all actual project-wide test cases. Nesting test cases are not permitted because they may produce an exception caused by re-initialization of the Kaspresso, use com.kaspersky.kaspresso.testcases.api.scenario.Scenario instead.
-
-
Field Summary
Fields Modifier and Type Field Description private final Kaspressokaspressoprivate final StringtestClassNameprivate final Function1<Function1<Unit, Unit>, Unit>dataProducerprivate final List<MainSectionEnricher<Unit>>mainSectionEnrichers
-
Constructor Summary
Constructors Constructor Description TestCaseRule(String testClassName, Kaspresso.Builder kaspressoBuilder)
-
Method Summary
Modifier and Type Method Description final KaspressogetKaspresso()final StringgetTestClassName()final Function1<Function1<Unit, Unit>, Unit>getDataProducer()final List<MainSectionEnricher<Unit>>getMainSectionEnrichers()-
Methods inherited from class com.kaspersky.kaspresso.testcases.api.testcaserule.TestCaseRule
apply, before, createBaseTestBodyBuilder, init, run -
Methods inherited from class org.junit.rules.TestRule
equals, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
TestCaseRule
TestCaseRule(String testClassName, Kaspresso.Builder kaspressoBuilder)
-
-
Method Detail
-
getKaspresso
final Kaspresso getKaspresso()
-
getTestClassName
final String getTestClassName()
-
getDataProducer
final Function1<Function1<Unit, Unit>, Unit> getDataProducer()
-
getMainSectionEnrichers
final List<MainSectionEnricher<Unit>> getMainSectionEnrichers()
-
-
-
-