Skip to content

Commit

Permalink
Add grid as point test for netcdf4ext format
Browse files Browse the repository at this point in the history
  • Loading branch information
tdrwenski authored and haileyajohnson committed Aug 23, 2023
1 parent 4902fb4 commit 838b829
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,14 @@ public void checkGridAsPointNetcdf() throws JDOMException, IOException {
checkGridAsPointNetcdfNew(content, varName);
}

@Test
public void checkGridAsPointNetcdf4Extended() throws JDOMException, IOException {
String endpoint = TestOnLocalServer.withHttpPath(ds + "?var=" + varName + query + "&accept=netcdf4ext");
byte[] content = TestOnLocalServer.getContent(endpoint, 200, ContentType.netcdf);
Assert.assertNotNull(content);
checkGridAsPointNetcdfNew(content, varName);
}

private void checkGridAsPointNetcdfOld(byte[] content, String varName) throws JDOMException, IOException {
// Open the binary response in memory
Formatter errlog = new Formatter();
Expand Down

0 comments on commit 838b829

Please sign in to comment.