diff --git a/reader/src/test/java/io/github/dfa1/vortex/reader/VortexHttpReaderIT.java b/reader/src/test/java/io/github/dfa1/vortex/reader/VortexHttpReaderIT.java index da3c087b..061473ac 100644 --- a/reader/src/test/java/io/github/dfa1/vortex/reader/VortexHttpReaderIT.java +++ b/reader/src/test/java/io/github/dfa1/vortex/reader/VortexHttpReaderIT.java @@ -61,6 +61,21 @@ void open_remoteFile_layoutRowCountIsPositive() throws Exception { } } + @Test + void open_withCustomRegistry_parsesMetadata() throws Exception { + // Given the two-arg overload: caller supplies a registry, default shared HttpClient. + // The three-arg overload is exercised by the mock-client unit tests, but this + // delegating overload was otherwise untested. + + // When + try (var sut = VortexHttpReader.open(FOR_ARRAY, ReadRegistry.loadAll())) { + + // Then + assertThat(sut.version()).isEqualTo(1); + assertThat(sut.dtype()).isNotNull(); + } + } + @Test void scan_forVortex_decodesAllRows() throws Exception { // Given