Search in sources :

Example 6 with Parser

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");
}
Also used : Version(org.fagu.version.Version) Parser(org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser) Test(org.junit.Test)

Example 7 with Parser

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));
}
Also used : Version(org.fagu.version.Version) Parser(org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser) Test(org.junit.Test)

Example 8 with Parser

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));
}
Also used : Version(org.fagu.version.Version) Parser(org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser) Test(org.junit.Test)

Example 9 with Parser

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));
}
Also used : Version(org.fagu.version.Version) Parser(org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser) Test(org.junit.Test)

Example 10 with Parser

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));
}
Also used : Version(org.fagu.version.Version) Parser(org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser) Test(org.junit.Test)

Aggregations

Parser (org.fagu.fmv.soft.find.ExecSoftFoundFactory.Parser)20 Test (org.junit.Test)18 Version (org.fagu.version.Version)14 Calendar (java.util.Calendar)3 Date (java.util.Date)2 SoftFound (org.fagu.fmv.soft.find.SoftFound)2 IOException (java.io.IOException)1 Arrays (java.util.Arrays)1 HashMap (java.util.HashMap)1 LinkedHashSet (java.util.LinkedHashSet)1 Map (java.util.Map)1 Set (java.util.Set)1 ExecutorService (java.util.concurrent.ExecutorService)1 Executors (java.util.concurrent.Executors)1 Future (java.util.concurrent.Future)1 Matcher (java.util.regex.Matcher)1 StringUtils (org.apache.commons.lang3.StringUtils)1 Executed (org.fagu.fmv.soft.SoftExecutor.Executed)1 ExecSoftFoundFactory (org.fagu.fmv.soft.find.ExecSoftFoundFactory)1 SoftFoundFactory (org.fagu.fmv.soft.find.SoftFoundFactory)1