package com.episode6.hackit.chop;

import com.episode6.hackit.chop.tree.StdOutDebugTree;

import org.junit.runners.BlockJUnit4ClassRunner;
import org.junit.runners.model.InitializationError;
import org.mockito.MockitoAnnotations;

public class ChopTestTestRunner extends BlockJUnit4ClassRunner {

  public ChopTestTestRunner(Class<?> klass) throws InitializationError {
    super(klass);
    Chop.plantTree(new StdOutDebugTree());
  }

  @Override
  protected Object createTest() throws Exception {
    Object test = super.createTest();
    MockitoAnnotations.initMocks(test);
    return test;
  }
}

@@ -290,16 +290,97 @@
 nner %7B%0A%0A
+  private static final StdOutDebugTree DEBUG_CHOP_TREE = new StdOutDebugTree();%0A%0A
   public
@@ -481,37 +481,31 @@
 antTree(
-new StdOutDebugTree()
+DEBUG_CHOP_TREE
 );%0A  %7D%0A%0A

fix a bug where i was planting a bunch of new StdOutDebugTrees over & over