Verified Commit b410ad9a authored by Marc Brendecke's avatar Marc Brendecke Committed by Jonathan Haas

Pfadgenerierung auf Java 8 Standard angehoben

parent 8fb586bf
......@@ -37,6 +37,7 @@ import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.nio.file.Paths;
/**
* JUnit-Test der Klasse {@link PersistenceManager}.
......@@ -68,7 +69,8 @@ public class TestPersistenceManagerRebuildIndex {
@Before
public void setUp() throws Exception {
tempDir = _davTestEnvironment.getTemporaryDirectory();
persistenceManager = new PersistenceManager(null, tempDir.getAbsolutePath() + File.separator + "archiv");
String archPath = Paths.get(tempDir.getAbsolutePath(), "archiv").toString();
persistenceManager = new PersistenceManager(null, archPath);
}
@After
......@@ -79,7 +81,8 @@ public class TestPersistenceManagerRebuildIndex {
/** Testet die Methode {@link PersistenceManager#getLastContainerID()}. */
@Test(timeout = 200000)
public void testRebuildIndex() throws IndexException, PersistenceException, IOException {
final String dataIdentificationPath = persistenceManager.getArchivePath() + File.separator + "obj309/obj622/obj474/obj381/obj862/obj255/atg291/asp700/sv0/oa";
final String dataIdentificationPath =
Paths.get(persistenceManager.getArchivePath(),"obj309/obj622/obj474/obj381/obj862/obj255/atg291/asp700/sv0/oa").toString();
final String[] allFiles = {
"dc0000000056564.dat", "dc0000000063573.dat", "dc0000000144288.dat", "dc0000000451336.dat", "dc0000000451338.dat",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment