Class CuratorRule

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

    public class CuratorRule
    extends org.junit.rules.TemporaryFolder
    This rule sets up logging, creates a Logger associated with the testing class, starts up zookeeper, and initializes Curator for use in the platform. Examples:
    Area Example
    Logging rule.LOG.info()
    Temp folders and files rule.newFile(), etc. See TemporaryFolder
    Curator connection string rule.getZookeeperConnectString()
    • Field Summary

      Fields 
      Modifier and Type Field Description
      org.slf4j.Logger LOG  
    • Constructor Summary

      Constructors 
      Constructor Description
      CuratorRule()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement base, org.junit.runner.Description description)
      java.lang.String getZookeeperConnectString()  
      void setPsbProperty​(java.lang.String nm, java.lang.String val)  
      • Methods inherited from class org.junit.rules.TemporaryFolder

        after, before, create, delete, getRoot, newFile, newFile, newFolder, newFolder, newFolder
      • Methods inherited from class java.lang.Object

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

      • LOG

        public org.slf4j.Logger LOG
    • Constructor Detail

      • CuratorRule

        public CuratorRule()
    • Method Detail

      • 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
        Overrides:
        apply in class org.junit.rules.ExternalResource
      • setPsbProperty

        public void setPsbProperty​(java.lang.String nm,
                                   java.lang.String val)
      • getZookeeperConnectString

        public java.lang.String getZookeeperConnectString()