Class AnnotatedMethodTemplate<A extends Annotation>

java.lang.Object
com.atlassian.confluence.util.test.rules.AnnotatedMethodTemplate<A>
Type Parameters:
A - the annotation used for configuring the rule
All Implemented Interfaces:
org.junit.rules.TestRule
Direct Known Subclasses:
Log4J2Logger, SystemProperties

@Deprecated public abstract class AnnotatedMethodTemplate<A extends Annotation> extends Object implements org.junit.rules.TestRule
Deprecated.
since 7.20 no replacement
Template for writing rules which read configuration from a method annotation.
Since:
5.4
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Class<A>
    Deprecated.
     
    protected final Class
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final org.junit.runners.model.Statement
    apply(org.junit.runners.model.Statement statement, org.junit.runner.Description description)
    Deprecated.
     
    protected abstract org.junit.runners.model.Statement
    applyForAnnotation(org.junit.runners.model.Statement statement, org.junit.runner.Description description, A annotation)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • testClass

      protected final Class testClass
      Deprecated.
    • annotationClass

      protected final Class<A extends Annotation> annotationClass
      Deprecated.
  • Constructor Details

    • AnnotatedMethodTemplate

      public AnnotatedMethodTemplate(Class testClass)
      Deprecated.
  • Method Details

    • apply

      public final org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement, org.junit.runner.Description description)
      Deprecated.
      Specified by:
      apply in interface org.junit.rules.TestRule
    • applyForAnnotation

      protected abstract org.junit.runners.model.Statement applyForAnnotation(org.junit.runners.model.Statement statement, org.junit.runner.Description description, A annotation)
      Deprecated.