public class TestCaseBuilder extends AnnotatedBuilder<TestCaseBuilder>
TestCase
instances.Constructor and Description |
---|
TestCaseBuilder()
Creates a new TestCaseBuilder object.
|
TestCaseBuilder(TestCase testCase)
Creates a new TestCaseBuilder object.
|
Modifier and Type | Method and Description |
---|---|
TestCaseBuilder |
bind(Iterable<VarBinding> bindings)
Adds variable bindings to the test case.
|
TestCaseBuilder |
bind(Stream<VarBinding> bindings)
Adds variable bindings to the test case.
|
TestCaseBuilder |
bind(String type,
VarBinding... bindings)
Adds variable bindings of the given type to the test case.
|
TestCaseBuilder |
bind(VarBinding... bindings)
Adds variable bindings to the test case.
|
TestCase |
build()
Returns the current test case.
|
protected Annotated |
getAnnotated()
Returns the
Annotated instance for this builder. |
TestCaseBuilder |
id(int id)
Changes the test case id.
|
TestCaseBuilder |
name(String name)
Changes the test case name.
|
TestCaseBuilder |
start()
Starts building a new test case.
|
TestCaseBuilder |
start(TestCase testCase)
Starts building a new test case.
|
static TestCaseBuilder |
with(int id)
Creates a new builder for a TestCase with the given id.
|
static TestCaseBuilder |
with(TestCase testCase)
Creates a new builder for the given TestCase.
|
annotations, has, has, has, has, hasIf, hasIf, hasIf, hasIf
public TestCaseBuilder()
public TestCaseBuilder(TestCase testCase)
public static TestCaseBuilder with(int id)
public static TestCaseBuilder with(TestCase testCase)
public TestCase build()
public TestCaseBuilder start()
public TestCaseBuilder start(TestCase testCase)
public TestCaseBuilder id(int id)
public TestCaseBuilder name(String name)
public TestCaseBuilder bind(VarBinding... bindings)
public TestCaseBuilder bind(Iterable<VarBinding> bindings)
public TestCaseBuilder bind(Stream<VarBinding> bindings)
public TestCaseBuilder bind(String type, VarBinding... bindings)
protected Annotated getAnnotated()
Annotated
instance for this builder.getAnnotated
in class AnnotatedBuilder<TestCaseBuilder>
Copyright © 2024 The Cornutum Project. All rights reserved.