use of org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser in project fmv by f-agu.
the class IMInfoTestCase method testParseOnWindows.
/**
* @throws IOException
*/
@Test
public void testParseOnWindows() throws IOException {
Parser parser = newParser();
parser.readLine("Version: ImageMagick 6.8.7-1 2013-10-17 Q16 http://www.imagemagick.org");
parser.readLine("Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC");
parser.readLine("Features: DPC OpenMP");
parser.readLine("Delegates: bzlib freetype jbig jng jp2 jpeg lcms lqr png ps png tiff webp x xml zlib");
assertInfo(parser, new Version(6, 8, 7, 1), d(2013, 10, 17), "6.8.7.1");
}
use of org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser in project fmv by f-agu.
the class GSSoftProviderTestCase method testParseOnWindows.
/**
* @throws IOException
*/
@Test
public void testParseOnWindows() throws IOException {
Parser parser = newParser();
parser.readLine("GPL Ghostscript 9.16 (2015-03-30)");
parser.readLine("Copyright (C) 2015 Artifex Software, Inc. All rights reserved.");
assertInfo(parser, new Version(9, 16), d(2015, 03, 30));
}
use of org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser in project fmv by f-agu.
the class GSSoftProviderTestCase method testParseOnMac.
/**
* @throws IOException
*/
@Test
public void testParseOnMac() throws IOException {
Parser parser = newParser();
parser.readLine("GPL Ghostscript 9.18 (2015-10-05)");
parser.readLine("Copyright (C) 2015 Artifex Software, Inc. All rights reserved.");
assertInfo(parser, new Version(9, 18), d(2015, 10, 05));
}
use of org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser in project fmv by f-agu.
the class JavaSoftProviderTestCase method testParse18OnWindows.
/**
* @throws IOException
*/
@Test
public void testParse18OnWindows() throws IOException {
Parser parser = newParser();
parser.readLine("java version \"1.8.0_20\"");
parser.readLine("Java(TM) SE Runtime Environment (build 1.8.0_20-b26)");
parser.readLine("Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)");
assertInfo(parser, new Version(1, 8, 0, 20));
}
use of org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser in project fmv by f-agu.
the class MediaInfoProviderTestCase method testParse.
@Test
public void testParse() throws IOException {
Parser parser = newParser();
parser.readLine("MediaInfo Command line,");
parser.readLine("MediaInfoLib - v18.03.1");
assertInfo(parser, new Version(18, 3, 1));
}
Aggregations