Use new hostname for KickAssTorrents
[rhynodge.git] / src / test / java / net / pterodactylus / rhynodge / states / StateManagerTest.java
index 5837846..839b389 100644 (file)
@@ -9,11 +9,12 @@ import static org.hamcrest.Matchers.is;
 
 import java.io.File;
 import java.io.IOException;
+import java.util.Optional;
 
 import net.pterodactylus.rhynodge.State;
+import net.pterodactylus.rhynodge.states.StateManager.StateDirectory;
 
 import com.fasterxml.jackson.annotation.JsonProperty;
-import com.google.common.base.Optional;
 import com.google.common.io.Files;
 import org.hamcrest.Matchers;
 import org.junit.BeforeClass;
@@ -41,7 +42,7 @@ public class StateManagerTest {
        public StateManagerTest() throws IOException {
                tempFolder.create();
                statePath = tempFolder.newFolder();
-               stateManager = new StateManager(statePath.getPath());
+               stateManager = new StateManager(StateDirectory.of(statePath.getPath()));
        }
 
        @Test