Record Class BrowserlessProjectSetup
java.lang.Object
java.lang.Record
com.vaadin.copilot.testrecordergenerator.browserless.BrowserlessProjectSetup
- Record Components:
baseClass- the fully qualified base class nameclassAnnotations- fully qualified names of the annotations to add to the test classdependencies- the test dependenciesfullySupported- 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 Summary
FieldsModifier and TypeFieldDescriptionstatic final TestBuildConfigurator.TestDependencystatic final TestBuildConfigurator.TestDependencystatic final Stringstatic final TestBuildConfigurator.TestDependencystatic final Stringstatic final Stringstatic final TestBuildConfigurator.TestDependency -
Constructor Summary
ConstructorsConstructorDescriptionBrowserlessProjectSetup(String baseClass, List<String> classAnnotations, List<TestBuildConfigurator.TestDependency> dependencies, boolean fullySupported) Creates an instance of aBrowserlessProjectSetuprecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaseClassrecord component.Returns the value of theclassAnnotationsrecord component.Returns the value of thedependenciesrecord component.final booleanIndicates whether some other object is "equal to" this one.static BrowserlessProjectSetupforProjectType(ProjectType projectType) Gets the setup for the given project type.booleanReturns the value of thefullySupportedrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
BROWSERLESS_TEST
- See Also:
-
SPRING_BROWSERLESS_TEST
- See Also:
-
SPRING_BOOT_TEST
- See Also:
-
BROWSERLESS_JUNIT6
-
BROWSERLESS_SPRING
-
SPRING_BOOT_STARTER_TEST
-
SPRING_SECURITY_TEST
-
-
Constructor Details
-
BrowserlessProjectSetup
public BrowserlessProjectSetup(String baseClass, List<String> classAnnotations, List<TestBuildConfigurator.TestDependency> dependencies, boolean fullySupported) Creates an instance of aBrowserlessProjectSetuprecord class.- Parameters:
baseClass- the value for thebaseClassrecord componentclassAnnotations- the value for theclassAnnotationsrecord componentdependencies- the value for thedependenciesrecord componentfullySupported- the value for thefullySupportedrecord component
-
-
Method Details
-
forProjectType
Gets the setup for the given project type.- Parameters:
projectType- the project type- Returns:
- the setup
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
baseClass
Returns the value of thebaseClassrecord component.- Returns:
- the value of the
baseClassrecord component
-
classAnnotations
Returns the value of theclassAnnotationsrecord component.- Returns:
- the value of the
classAnnotationsrecord component
-
dependencies
Returns the value of thedependenciesrecord component.- Returns:
- the value of the
dependenciesrecord component
-
fullySupported
public boolean fullySupported()Returns the value of thefullySupportedrecord component.- Returns:
- the value of the
fullySupportedrecord component
-