Search in sources :

Example 6 with VersionSoftInfo

use of org.fagu.fmv.soft.find.info.VersionSoftInfo in project fmv by f-agu.

the class MediaInfoProviderTestCase method assertInfo.

/**
 * @param parser
 * @param expectedVersion
 * @throws IOException
 */
private void assertInfo(Parser parser, Version expectedVersion) throws IOException {
    SoftFound softFound = parser.closeAndParse("", 0);
    VersionSoftInfo softInfo = (VersionSoftInfo) softFound.getSoftInfo();
    assertEquals(expectedVersion, softInfo.getVersion().orElse(null));
}
Also used : VersionSoftInfo(org.fagu.fmv.soft.find.info.VersionSoftInfo) SoftFound(org.fagu.fmv.soft.find.SoftFound)

Aggregations

VersionSoftInfo (org.fagu.fmv.soft.find.info.VersionSoftInfo)6 SoftFound (org.fagu.fmv.soft.find.SoftFound)5 SoftInfo (org.fagu.fmv.soft.find.SoftInfo)2 SimpleDateFormat (java.text.SimpleDateFormat)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 StringJoiner (java.util.StringJoiner)1 Soft (org.fagu.fmv.soft.Soft)1 SoftExecutor (org.fagu.fmv.soft.SoftExecutor)1 FoundReason (org.fagu.fmv.soft.find.FoundReason)1 VersionDateSoftInfo (org.fagu.fmv.soft.find.info.VersionDateSoftInfo)1 VersionSoftPolicy.minVersion (org.fagu.fmv.soft.find.policy.VersionSoftPolicy.minVersion)1 Version (org.fagu.version.Version)1