Files
data-access-benchmark/src/main/java/com/benchmark/fixtures/FixtureFactory.java
T

15 lines
510 B
Java
Raw Normal View History

2026-04-05 14:31:17 +00:00
package com.benchmark.fixtures;
public class FixtureFactory {
public static DataFixtures create(String type) {
return switch (type) {
case "gson" -> new GsonFileFixture();
case "kryo" -> new KryoFileFixture();
case "sqlite-jdbc" -> new SqliteJdbcFixture();
case "sqlite-ormlite" -> new SqliteOrmLiteFixture();
default -> throw new IllegalArgumentException("Unknown fixture type: " + type);
};
}
}