Class ImmutableComposableTestCaseDto
java.lang.Object
com.chutneytesting.component.scenario.api.dto.ImmutableComposableTestCaseDto
- All Implemented Interfaces:
ComposableTestCaseDto
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableComposableTestCaseDto
extends Object
implements ComposableTestCaseDto
Immutable implementation of
ComposableTestCaseDto.
Use the builder to create immutable instances:
ImmutableComposableTestCaseDto.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableComposableTestCaseDto.Nested classes/interfaces inherited from interface com.chutneytesting.component.scenario.api.dto.ComposableTestCaseDto
ComposableTestCaseDto.ComposableScenarioDto -
Method Summary
Modifier and TypeMethodDescriptionauthor()builder()Creates a builder forImmutableComposableTestCaseDto.copyOf(ComposableTestCaseDto instance) Creates an immutable copy of aComposableTestCaseDtovalue.booleanThis instance is equal to all instances ofImmutableComposableTestCaseDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:id,title,description,creationDate,tags,scenario,datasetId,author,updateDate,version,executionParameters.id()scenario()tags()title()toString()Prints the immutable valueComposableTestCaseDtowith attribute values.version()withAuthor(String value) Copy the current immutable object by setting a value for theauthorattribute.withCreationDate(Instant value) Copy the current immutable object by setting a value for thecreationDateattribute.withDatasetId(String value) Copy the current immutable object by setting a present value for the optionaldatasetIdattribute.withDatasetId(Optional<String> optional) Copy the current immutable object by setting an optional value for thedatasetIdattribute.withDescription(String value) Copy the current immutable object by setting a present value for the optionaldescriptionattribute.withDescription(Optional<String> optional) Copy the current immutable object by setting an optional value for thedescriptionattribute.withExecutionParameters(KeyValue... elements) Copy the current immutable object with elements that replace the content ofexecutionParameters.withExecutionParameters(Iterable<? extends KeyValue> elements) Copy the current immutable object with elements that replace the content ofexecutionParameters.Copy the current immutable object by setting a present value for the optionalidattribute.Copy the current immutable object by setting an optional value for theidattribute.Copy the current immutable object by setting a value for thescenarioattribute.Copy the current immutable object with elements that replace the content oftags.Copy the current immutable object with elements that replace the content oftags.Copy the current immutable object by setting a value for thetitleattribute.withUpdateDate(Instant value) Copy the current immutable object by setting a value for theupdateDateattribute.withVersion(Integer value) Copy the current immutable object by setting a value for theversionattribute.
-
Method Details
-
id
- Specified by:
idin interfaceComposableTestCaseDto- Returns:
- The value of the
idattribute
-
title
- Specified by:
titlein interfaceComposableTestCaseDto- Returns:
- The value of the
titleattribute
-
description
- Specified by:
descriptionin interfaceComposableTestCaseDto- Returns:
- The value of the
descriptionattribute
-
creationDate
- Specified by:
creationDatein interfaceComposableTestCaseDto- Returns:
- The value of the
creationDateattribute
-
tags
- Specified by:
tagsin interfaceComposableTestCaseDto- Returns:
- The value of the
tagsattribute
-
scenario
- Specified by:
scenarioin interfaceComposableTestCaseDto- Returns:
- The value of the
scenarioattribute
-
datasetId
- Specified by:
datasetIdin interfaceComposableTestCaseDto- Returns:
- The value of the
datasetIdattribute
-
author
- Specified by:
authorin interfaceComposableTestCaseDto- Returns:
- The value of the
authorattribute
-
updateDate
- Specified by:
updateDatein interfaceComposableTestCaseDto- Returns:
- The value of the
updateDateattribute
-
version
- Specified by:
versionin interfaceComposableTestCaseDto- Returns:
- The value of the
versionattribute
-
executionParameters
- Specified by:
executionParametersin interfaceComposableTestCaseDto- Returns:
- The value of the
executionParametersattribute
-
withId
Copy the current immutable object by setting a present value for the optionalidattribute.- Parameters:
value- The value for id- Returns:
- A modified copy of
thisobject
-
withId
Copy the current immutable object by setting an optional value for theidattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for id- Returns:
- A modified copy of
thisobject
-
withTitle
Copy the current immutable object by setting a value for thetitleattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for title- Returns:
- A modified copy of the
thisobject
-
withDescription
Copy the current immutable object by setting a present value for the optionaldescriptionattribute.- Parameters:
value- The value for description- Returns:
- A modified copy of
thisobject
-
withDescription
Copy the current immutable object by setting an optional value for thedescriptionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for description- Returns:
- A modified copy of
thisobject
-
withCreationDate
Copy the current immutable object by setting a value for thecreationDateattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for creationDate- Returns:
- A modified copy of the
thisobject
-
withTags
Copy the current immutable object with elements that replace the content oftags.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withTags
Copy the current immutable object with elements that replace the content oftags. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of tags elements to set- Returns:
- A modified copy of
thisobject
-
withScenario
public final ImmutableComposableTestCaseDto withScenario(ComposableTestCaseDto.ComposableScenarioDto value) Copy the current immutable object by setting a value for thescenarioattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for scenario- Returns:
- A modified copy of the
thisobject
-
withDatasetId
Copy the current immutable object by setting a present value for the optionaldatasetIdattribute.- Parameters:
value- The value for datasetId- Returns:
- A modified copy of
thisobject
-
withDatasetId
Copy the current immutable object by setting an optional value for thedatasetIdattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for datasetId- Returns:
- A modified copy of
thisobject
-
withAuthor
Copy the current immutable object by setting a value for theauthorattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for author- Returns:
- A modified copy of the
thisobject
-
withUpdateDate
Copy the current immutable object by setting a value for theupdateDateattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for updateDate- Returns:
- A modified copy of the
thisobject
-
withVersion
Copy the current immutable object by setting a value for theversionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for version- Returns:
- A modified copy of the
thisobject
-
withExecutionParameters
Copy the current immutable object with elements that replace the content ofexecutionParameters.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withExecutionParameters
public final ImmutableComposableTestCaseDto withExecutionParameters(Iterable<? extends KeyValue> elements) Copy the current immutable object with elements that replace the content ofexecutionParameters. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of executionParameters elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableComposableTestCaseDtothat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,title,description,creationDate,tags,scenario,datasetId,author,updateDate,version,executionParameters. -
toString
Prints the immutable valueComposableTestCaseDtowith attribute values. -
copyOf
Creates an immutable copy of aComposableTestCaseDtovalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable ComposableTestCaseDto instance
-
builder
Creates a builder forImmutableComposableTestCaseDto.ImmutableComposableTestCaseDto.builder() .id(String) // optionalid.title(String) // requiredtitle.description(String) // optionaldescription.creationDate(java.time.Instant) // optionalcreationDate.addTags|addAllTags(String) //tagselements .scenario(com.chutneytesting.component.scenario.api.dto.ComposableTestCaseDto.ComposableScenarioDto) // requiredscenario.datasetId(String) // optionaldatasetId.author(String) // optionalauthor.updateDate(java.time.Instant) // optionalupdateDate.version(Integer) // optionalversion.addExecutionParameters|addAllExecutionParameters(com.chutneytesting.server.core.domain.tools.ui.KeyValue) //executionParameterselements .build();- Returns:
- A new ImmutableComposableTestCaseDto builder
-