XfduManifest implements Manifest { @Override public List<String> getFileNames(final String schema) { final List<String> fileNameList = new ArrayList<>(); getFileNames("dataObjectSection/dataObject", fileNameList); getFileNames("metadataSection/metadataObject", fileNameList); return fileNameList; } private  XfduManifest(Document manifestDocument); static Manifest createManifest(Document manifestDocument); @Override String getProductName(); @Override String getProductType(); @Override String getDescription(); @Override ProductData.UTC getStartTime(); @Override ProductData.UTC getStopTime(); @Override List<String> getFileNames(final String schema); @Override List<String> getFileNames(String[] excluded); @Override MetadataElement getMetadata();  }
@Test public void testGetFileNames() { String[] excluded = new String[0]; List<String> fileNames = manifestTest.getFileNames(excluded); assertEquals(67, fileNames.size()); assertEquals("r0400.nc", fileNames.get(0)); assertEquals("r0560.nc", fileNames.get(5)); assertEquals("r0550n.nc", fileNames.get(18)); assertEquals("r1375o.nc", fileNames.get(27)); assertEquals("flags.nc", fileNames.get(66)); }
@Test public void testGetFileNames_Exclusions() { String[] excluded = new String[]{"aerosolModelIndex", "pixelStatusFlags"}; List<String> fileNames = manifestTest.getFileNames(excluded); assertEquals(65, fileNames.size()); assertEquals(false, fileNames.contains("amin.nc")); assertEquals(false, fileNames.contains("flags.nc")); assertEquals("r0560.nc", fileNames.get(5)); assertEquals("r0550n.nc", fileNames.get(18)); assertEquals("r1375o.nc", fileNames.get(27)); }