Record Class JStubTest
java.lang.Object
java.lang.Record
honeyroasted.jypestub.model.test.JStubTest
public record JStubTest(JStubTest.Solver solver, List<JTestCondition.Wrapper> expect, List<JTestConstraint.Wrapper> constraints)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionJStubTest(JStubTest.Solver solver, List<JTestCondition.Wrapper> expect, List<JTestConstraint.Wrapper> constraints) Creates an instance of aJStubTestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconstraintsrecord component.final booleanIndicates whether some other object is "equal to" this one.expect()Returns the value of theexpectrecord component.final inthashCode()Returns a hash code value for this object.solver()Returns the value of thesolverrecord component.test(honeyroasted.jype.system.JTypeSystem system) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JStubTest
public JStubTest(JStubTest.Solver solver, List<JTestCondition.Wrapper> expect, List<JTestConstraint.Wrapper> constraints) Creates an instance of aJStubTestrecord class.- Parameters:
solver- the value for thesolverrecord componentexpect- the value for theexpectrecord componentconstraints- the value for theconstraintsrecord component
-
-
Method Details
-
test
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
solver
Returns the value of thesolverrecord component.- Returns:
- the value of the
solverrecord component
-
expect
Returns the value of theexpectrecord component.- Returns:
- the value of the
expectrecord component
-
constraints
Returns the value of theconstraintsrecord component.- Returns:
- the value of the
constraintsrecord component
-