Testat 3b und experimentelle sichere Ausführung für Testat 3a

This commit is contained in:
2025-08-26 17:37:34 +02:00
parent 4a2d0ccd6f
commit 74e22ec5b2
22 changed files with 2973 additions and 378 deletions
+2 -15
View File
@@ -1,30 +1,17 @@
import java.io.IOException;
import java.net.URI;
import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.util.HashMap;
import java.util.Map;
public class InMemoryPathFactory {
private static InMemoryFileSystem fileSystem;
private static final InMemoryFileSystemProvider provider = new InMemoryFileSystemProvider();
private static final InMemoryFileSystem fileSystem = new InMemoryFileSystem(provider);
private InMemoryPathFactory() {
// Utility class - private constructor
}
static {
try {
// Create the in-memory file system
URI uri = URI.create("memory://default/");
Map<String, Object> env = new HashMap<>();
fileSystem = (InMemoryFileSystem) FileSystems.newFileSystem(uri, env);
} catch (IOException e) {
throw new RuntimeException("Failed to create in-memory file system", e);
}
}
/**
* Creates a new in-memory path
*