Record Class BrowserlessGenerationOptions.Security
java.lang.Object
java.lang.Record
com.vaadin.copilot.testrecordergenerator.browserless.BrowserlessGenerationOptions.Security
- Record Components:
mockUserRoles- roles for@WithMockUser, null when a mock user cannot be used and the test gets a comment about the security setup insteadtodo- the TODO text whenmockUserRolesis null
- Enclosing class:
BrowserlessGenerationOptions
public static record BrowserlessGenerationOptions.Security(List<String> mockUserRoles, String todo)
extends Record
Security setup for a secured view.
-
Constructor Summary
Constructors -
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 themockUserRolesrecord component.todo()Returns the value of thetodorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Security
Creates an instance of aSecurityrecord class.- Parameters:
mockUserRoles- the value for themockUserRolesrecord componenttodo- the value for thetodorecord 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). -
mockUserRoles
Returns the value of themockUserRolesrecord component.- Returns:
- the value of the
mockUserRolesrecord component
-
todo
Returns the value of thetodorecord component.- Returns:
- the value of the
todorecord component
-