import static com.google.common.base.Charsets.UTF_8;
import static com.google.common.base.Objects.equal;
+import static org.apache.log4j.Level.OFF;
+import static org.apache.log4j.Logger.getLogger;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import com.google.common.base.Optional;
import com.google.common.io.Files;
import org.hamcrest.Matchers;
+import org.junit.BeforeClass;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
private final File statePath;
private final StateManager stateManager;
+ @BeforeClass
+ public static void deactivateLogging() {
+ getLogger(StateManager.class).setLevel(OFF);
+ }
+
public StateManagerTest() throws IOException {
tempFolder.create();
statePath = tempFolder.newFolder();