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/java
setup - base class, annotations and dependencies for the project type
startViewFqn - the view where the recording started, used when the scenario has no page change event with a view
viewsWithParameters - views that need the route path to navigate, e.g. views with URL parameters
security - security setup for the view, null when the view is not secured
injectedTypes - 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.
  • Constructor Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • testFolder

      public Path testFolder()
      Returns the value of the testFolder record component.
      Returns:
      the value of the testFolder record component
    • setup

      public BrowserlessProjectSetup setup()
      Returns the value of the setup record component.
      Returns:
      the value of the setup record component
    • startViewFqn

      public String startViewFqn()
      Returns the value of the startViewFqn record component.
      Returns:
      the value of the startViewFqn record component
    • viewsWithParameters

      public Set<String> viewsWithParameters()
      Returns the value of the viewsWithParameters record component.
      Returns:
      the value of the viewsWithParameters record component
    • security

      Returns the value of the security record component.
      Returns:
      the value of the security record component
    • injectedTypes

      public List<String> injectedTypes()
      Returns the value of the injectedTypes record component.
      Returns:
      the value of the injectedTypes record component