OracledbDataStorageHistory { public Collection<StoredDataMetadata> getHistoryFactoryList() { ArrayList<StoredDataMetadata> result = new ArrayList<>(); try (Connection connection= connectionSupplier.get(); Statement statement = connection.createStatement(); ResultSet resultSet =statement.executeQuery("SELECT * FROM FACTORY_HISTORY")) { while (resultSet.next()) { result.add(migrationManager.readStoredFactoryMetadata(JdbcUtil.readStringFromBlob(resultSet, "factoryMetadata"))); } } catch (SQLException e) { throw new RuntimeException(e); } return result; } OracledbDataStorageHistory(Supplier<Connection> connectionSupplier, MigrationManager<R> migrationManager); R getHistoryFactory(String id); Collection<StoredDataMetadata> getHistoryFactoryList(); void updateHistory(StoredDataMetadata metadata, R factoryRoot); void patchAll(DataStoragePatcher consumer, SimpleObjectMapper objectMapper);  }
@Test public void test_empty() { OracledbDataStorageHistory<ExampleFactoryA> oracledbDataStorageHistory = new OracledbDataStorageHistory<>(connectionSupplier, createMigrationManager()); Assertions.assertTrue(oracledbDataStorageHistory.getHistoryFactoryList().isEmpty()); }