Class InjectFieldsRule

java.lang.Object
com.atlassian.jira.functest.rule.InjectFieldsRule
All Implemented Interfaces:
org.junit.rules.TestRule

public class InjectFieldsRule extends Object implements org.junit.rules.TestRule
Rule that can be used to inject fields to test class. Internally guice is used to populate given object.
Since:
v6.5
  • Constructor Details

    • InjectFieldsRule

      public InjectFieldsRule(com.google.inject.Injector injector, Object testInstance)
  • Method Details

    • apply

      public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
      Specified by:
      apply in interface org.junit.rules.TestRule