Beispiel #1
0
 /** {@inheritDoc} */
 @Override
 protected void tearDown() throws Exception {
   if (slave != null) {
     slave.stop();
   }
   if (master != null) {
     master.stop();
   }
   super.tearDown();
 }
Beispiel #2
0
  /** {@inheritDoc} */
  @Override
  protected void setUp() throws Exception {
    master = createClusterNode("master", false);
    master.start();

    slave = createClusterNode("slave", true);
    slave.start();

    super.setUp();
  }