EEToNetCDFExporterOp extends AbstractNetCDFExporterOp { public static File getOutputFile(File dblFile, File targetDirectory) { File outFile = new File(targetDirectory, dblFile.getName()); outFile = FileUtils.exchangeExtension(outFile, ".nc"); return outFile; }  @Override void initialize(); static File getOutputFile(File dblFile, File targetDirectory); static final String ALIAS; }
@Test public void testGetOutputFile() { final File input = new File("bla/bla/change_my_name.zip"); final File targetDir = new File("/target/di/rectory"); final File outputFile = EEToNetCDFExporterOp.getOutputFile(input, targetDir); assertEquals("change_my_name.nc", outputFile.getName()); assertEquals(targetDir.getAbsolutePath(), outputFile.getParentFile().getAbsolutePath()); }