/*
* Copyright (C) 2015 by Array Systems Computing Inc. http://www.array.ca
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 3 of the License, or (at your option)
* any later version.
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, see http://www.gnu.org/licenses/
*/
package org.esa.s1tbx.fex.gpf.oceantools;
import org.esa.s1tbx.commons.S1TBXTests;
import org.esa.snap.core.util.SystemUtils;
import org.esa.snap.engine_utilities.util.TestUtils;
import org.junit.Ignore;
import org.junit.Test;
import java.io.File;
/**
* Unit test for OceanTools Graph
*/
public class TestOceanToolsGraph {
private static String graphFile = "OceanShipAndOilDetectionGraph.xml";
private static String ASAR_IMM = "input\\ASA_IMM_1P_0739.N1";
@Test
@Ignore
public void testProcessGraph() throws Exception {
final File inputFile = new File(S1TBXTests.rootPathTestProducts, ASAR_IMM);
final File outputFile = new File(SystemUtils.getCacheDir(), "tmpOut.dim");
if (!inputFile.exists()) {
TestUtils.skipTest(this, inputFile +" not found");
return;
}
/* final GraphExecuter graphEx = new GraphExecuter();
graphEx.loadGraph(new File(ResourceUtils.getGraphFolder("User Graphs"), graphFile), false);
GraphExecuter.setGraphIO(graphEx,
"1-Read", inputFile.getAbsoluteFile(),
"8-Write", outputFile.getAbsoluteFile(),
DimapProductConstants.DIMAP_FORMAT_NAME);
graphEx.InitGraph();
graphEx.executeGraph(ProgressMonitor.NULL); */
}
}