Record Class BrowserlessProjectSetup

java.lang.Object
java.lang.Record
com.vaadin.copilot.testrecordergenerator.browserless.BrowserlessProjectSetup
Record Components:
baseClass - the fully qualified base class name
classAnnotations - fully qualified names of the annotations to add to the test class
dependencies - the test dependencies
fullySupported - false when the setup is a fallback that only works for views without injected dependencies

public record BrowserlessProjectSetup(String baseClass, List<String> classAnnotations, List<TestBuildConfigurator.TestDependency> dependencies, boolean fullySupported) extends Record
How a Browserless test is set up for a given project type: the base class, the class annotations and the test dependencies.

This is a lookup by project type so that full Quarkus and CDI support can be added by changing the entries only. In this version Quarkus and CDI projects use the plain BrowserlessTest, which works for views without injected dependencies.

  • Field Details

  • Constructor Details

  • Method Details

    • forProjectType

      public static BrowserlessProjectSetup forProjectType(ProjectType projectType)
      Gets the setup for the given project type.
      Parameters:
      projectType - the project type
      Returns:
      the setup
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • baseClass

      public String baseClass()
      Returns the value of the baseClass record component.
      Returns:
      the value of the baseClass record component
    • classAnnotations

      public List<String> classAnnotations()
      Returns the value of the classAnnotations record component.
      Returns:
      the value of the classAnnotations record component
    • dependencies

      Returns the value of the dependencies record component.
      Returns:
      the value of the dependencies record component
    • fullySupported

      public boolean fullySupported()
      Returns the value of the fullySupported record component.
      Returns:
      the value of the fullySupported record component