Record Class BrowserlessGenerationOptions
java.lang.Object
java.lang.Record
com.vaadin.copilot.testrecordergenerator.browserless.BrowserlessGenerationOptions
- Record Components:
testFolder- the test source root, e.g.src/test/javasetup- base class, annotations and dependencies for the project typestartViewFqn- the view where the recording started, used when the scenario has no page change event with a viewviewsWithParameters- views that need the route path to navigate, e.g. views with URL parameterssecurity- security setup for the view, null when the view is not securedinjectedTypes- simple names of types injected into the view or its layouts, for the Quarkus/CDI fallback. Empty when there is nothing to report.
public record BrowserlessGenerationOptions(Path testFolder, BrowserlessProjectSetup setup, String startViewFqn, Set<String> viewsWithParameters, BrowserlessGenerationOptions.Security security, List<String> injectedTypes)
extends Record
Project specific information needed to generate a Browserless test. It is
collected from the running application by the handler, which keeps the
generator free of runtime lookups.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordSecurity setup for a secured view. -
Constructor Summary
ConstructorsConstructorDescriptionBrowserlessGenerationOptions(Path testFolder, BrowserlessProjectSetup setup, String startViewFqn, Set<String> viewsWithParameters, BrowserlessGenerationOptions.Security security, List<String> injectedTypes) Creates an instance of aBrowserlessGenerationOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinjectedTypesrecord component.security()Returns the value of thesecurityrecord component.setup()Returns the value of thesetuprecord component.Returns the value of thestartViewFqnrecord component.Returns the value of thetestFolderrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theviewsWithParametersrecord component.
-
Constructor Details
-
BrowserlessGenerationOptions
public BrowserlessGenerationOptions(Path testFolder, BrowserlessProjectSetup setup, String startViewFqn, Set<String> viewsWithParameters, BrowserlessGenerationOptions.Security security, List<String> injectedTypes) Creates an instance of aBrowserlessGenerationOptionsrecord class.- Parameters:
testFolder- the value for thetestFolderrecord componentsetup- the value for thesetuprecord componentstartViewFqn- the value for thestartViewFqnrecord componentviewsWithParameters- the value for theviewsWithParametersrecord componentsecurity- the value for thesecurityrecord componentinjectedTypes- the value for theinjectedTypesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
testFolder
Returns the value of thetestFolderrecord component.- Returns:
- the value of the
testFolderrecord component
-
setup
Returns the value of thesetuprecord component.- Returns:
- the value of the
setuprecord component
-
startViewFqn
Returns the value of thestartViewFqnrecord component.- Returns:
- the value of the
startViewFqnrecord component
-
viewsWithParameters
Returns the value of theviewsWithParametersrecord component.- Returns:
- the value of the
viewsWithParametersrecord component
-
security
Returns the value of thesecurityrecord component.- Returns:
- the value of the
securityrecord component
-
injectedTypes
Returns the value of theinjectedTypesrecord component.- Returns:
- the value of the
injectedTypesrecord component
-