@Test public void shouldCreateGlobalConstraintWithNoMethodsOmittedForNonCor() { config = restConfigWith(ImmutableMap.of( RestConfig.ACCESS_CONTROL_ALLOW_ORIGIN_CONFIG, "")); final ConstraintMapping mapping = AuthUtil.createGlobalAuthConstraint(config); assertThat(mapping.getMethodOmissions(), is(nullValue())); }
public static ConstraintMapping createGlobalAuthConstraint(final RestConfig restConfig) { return createConstraint(restConfig, true, "/*"); }
AuthUtil { public static ConstraintMapping createGlobalAuthConstraint(final RestConfig restConfig) { return createConstraint(restConfig, true, "/*"); } }
AuthUtil { public static ConstraintMapping createGlobalAuthConstraint(final RestConfig restConfig) { return createConstraint(restConfig, true, "/*"); } private  AuthUtil(); }
AuthUtil { public static ConstraintMapping createGlobalAuthConstraint(final RestConfig restConfig) { return createConstraint(restConfig, true, "/*"); } private  AuthUtil(); static boolean isCorsEnabled(final RestConfig restConfig); static boolean isSkipOptionsAuth(final RestConfig restConfig); static ConstraintMapping createGlobalAuthConstraint(final RestConfig restConfig); static ConstraintMapping createSecuredConstraint(
      final RestConfig restConfig,
      final String pathSpec
  ); static ConstraintMapping createUnsecuredConstraint(
      final RestConfig restConfig,
      final String pathSpec
  ); static List<ConstraintMapping> createUnsecuredConstraints(final RestConfig restConfig); }
AuthUtil { public static ConstraintMapping createGlobalAuthConstraint(final RestConfig restConfig) { return createConstraint(restConfig, true, "/*"); } private  AuthUtil(); static boolean isCorsEnabled(final RestConfig restConfig); static boolean isSkipOptionsAuth(final RestConfig restConfig); static ConstraintMapping createGlobalAuthConstraint(final RestConfig restConfig); static ConstraintMapping createSecuredConstraint(
      final RestConfig restConfig,
      final String pathSpec
  ); static ConstraintMapping createUnsecuredConstraint(
      final RestConfig restConfig,
      final String pathSpec
  ); static List<ConstraintMapping> createUnsecuredConstraints(final RestConfig restConfig);  }