Package inspiredbyte.examples.rules.annotations

Examples of inspiredbyte.examples.rules.annotations.SecurityContext


public class SecurityContextRule implements TestRule {

  @Override
  public Statement apply(Statement base, Description description) {
    SecurityContext securityContext = description.getAnnotation(SecurityContext.class);

    return securityContext != null ? new SecurityContextStatement(base, getLoginId(securityContext),
        getAuthorities(securityContext)) : base;
  }
View Full Code Here

TOP

Related Classes of inspiredbyte.examples.rules.annotations.SecurityContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.