Package dev.dokimos.core
Class Example.Builder
java.lang.Object
dev.dokimos.core.Example.Builder
- Enclosing class:
Example
Builder for constructing examples with multiple inputs and outputs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()expectedOutput(String key, Object value) Adds an expected output with the given key and value.expectedOutputs(Map<String, Object> expectedOutputs) Adds all entries from the given expected outputs map.Adds an input with the given key and value.Adds all entries from the given inputs map.Adds metadata with the given key and value.Adds all entries from the given metadata map.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
input
Adds an input with the given key and value.- Parameters:
key- the input keyvalue- the input value- Returns:
- this builder
-
expectedOutput
Adds an expected output with the given key and value.- Parameters:
key- the output keyvalue- the output value- Returns:
- this builder
-
metadata
Adds metadata with the given key and value.- Parameters:
key- the metadata keyvalue- the metadata value- Returns:
- this builder
-
inputs
Adds all entries from the given inputs map.- Parameters:
inputs- the inputs to add- Returns:
- this builder
-
expectedOutputs
Adds all entries from the given expected outputs map.- Parameters:
expectedOutputs- the expected outputs to add- Returns:
- this builder
-
metadata
Adds all entries from the given metadata map.- Parameters:
metadata- the metadata to add- Returns:
- this builder
-
build
-