Annotation Interface TestSecurity


@Retention(RUNTIME) @Target({TYPE,METHOD}) @Inherited public @interface TestSecurity
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
    boolean
    If this is false then all security constraints are disabled.
    Used in combination with user() to specify the users roles.
    If this is non-zero then the test will be run with a SecurityIdentity with the specified username.
  • Element Details

    • authorizationEnabled

      boolean authorizationEnabled
      If this is false then all security constraints are disabled.
      Default:
      true
    • user

      String user
      If this is non-zero then the test will be run with a SecurityIdentity with the specified username.
      Default:
      ""
    • roles

      String[] roles
      Used in combination with user() to specify the users roles.
      Default:
      {}
    • attributes

      SecurityAttribute[] attributes
      Default:
      {}