Class AutoClient

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public class AutoClient
    extends org.junit.rules.ExternalResource
    A TestRule implementing ExternalResource automatically creating and destroying a new Zats Client instance.
    Used with Rule this will provide a pluggable alternative to separate methods annotated with Before and After
    • Method Detail

      • before

        protected void before()
                       throws Throwable
        Overrides:
        before in class org.junit.rules.ExternalResource
        Throws:
        Throwable
      • after

        protected void after()
        Overrides:
        after in class org.junit.rules.ExternalResource
      • getClient

        public Client getClient()
        allows access to the automatically created Zats Client instance. To access all functionality.
        Returns:
        the current Zats Client