public class AbstractShouldSpec extends AbstractSpec
Example:
"some test" { "with context" { should("do something") { // test here } } }
or
should("do something") { // test here }
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractShouldSpec.ShouldScope |
class |
AbstractShouldSpec.Testbuilder |
Spec.DefaultImpls| Constructor and Description |
|---|
AbstractShouldSpec(kotlin.jvm.functions.Function1<? super io.kotlintest.specs.AbstractShouldSpec,kotlin.Unit> body)
Example:
|
AbstractShouldSpec()
Example:
|
| Modifier and Type | Method and Description |
|---|---|
void |
invoke(java.lang.String $receiver,
kotlin.jvm.functions.Function2<? super io.kotlintest.specs.AbstractShouldSpec.ShouldScope,? super kotlin.coroutines.experimental.Continuation<? super kotlin.Unit>,? extends java.lang.Object> init) |
void |
should(java.lang.String name,
kotlin.jvm.functions.Function2<? super io.kotlintest.TestContext,? super kotlin.coroutines.experimental.Continuation<? super kotlin.Unit>,? extends java.lang.Object> test) |
AbstractShouldSpec.Testbuilder |
should(java.lang.String name) |
addTestCase, autoClose, closeResources, createTestCase, getAcceptingTopLevelRegistration, getDefaultTestCaseConfig, isInstancePerTest, setAcceptingTopLevelRegistration, testCasescloseResources, description, extensions, focused, hasFocusedTest, isInstancePerTest, isolationMode, listeners, tags, testCaseOrder, testCasesafterDiscovery, afterProject, afterSpec, afterSpec, afterSpecClass, afterSpecCompleted, afterTest, afterTest, beforeProject, beforeSpec, beforeSpec, beforeSpecClass, beforeSpecStarted, beforeTest, beforeTestpublic AbstractShouldSpec(kotlin.jvm.functions.Function1<? super io.kotlintest.specs.AbstractShouldSpec,kotlin.Unit> body)
Example:
"some test" { "with context" { should("do something") { // test here } } }
or
should("do something") { // test here }
public AbstractShouldSpec()
Example:
"some test" { "with context" { should("do something") { // test here } } }
or
should("do something") { // test here }
public void invoke(java.lang.String $receiver,
kotlin.jvm.functions.Function2<? super io.kotlintest.specs.AbstractShouldSpec.ShouldScope,? super kotlin.coroutines.experimental.Continuation<? super kotlin.Unit>,? extends java.lang.Object> init)
public void should(java.lang.String name,
kotlin.jvm.functions.Function2<? super io.kotlintest.TestContext,? super kotlin.coroutines.experimental.Continuation<? super kotlin.Unit>,? extends java.lang.Object> test)
public AbstractShouldSpec.Testbuilder should(java.lang.String name)