27 lines
764 B
Java
27 lines
764 B
Java
package org.gcube.common.software.analyser;
|
|
|
|
import java.io.File;
|
|
|
|
import org.gcube.common.software.utils.FileUtils;
|
|
import org.junit.Test;
|
|
|
|
/**
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
*/
|
|
public class SoftwareConceptAnalyserTest {
|
|
|
|
public static final String FILENAME = "gcat-test-sandbox.json";
|
|
// public static final String FILENAME = "gcat-from-scratch.json";
|
|
// public static final String FILENAME = "exported-gcat-from-scratch.json";
|
|
|
|
@Test
|
|
public void testUsingTestFile() throws Exception {
|
|
File file = FileUtils.getFileFromFilename(FILENAME);
|
|
Analyser analyser = AnalyserFactory.getAnalyser(file);
|
|
analyser.analyse();
|
|
File exportFile = new File("exported-"+file.getName());
|
|
AnalyserFactory.writeAnalysResultToFile(analyser, exportFile);
|
|
}
|
|
|
|
}
|