Search in sources :

Example 1 with GSSoftProvider

use of org.fagu.fmv.soft.gs.GSSoftProvider in project fmv by f-agu.

the class SoftTestCase method testGS.

@Test
@Ignore
public void testGS() throws Exception {
    GSSoftProvider gsSoftProvider = new GSSoftProvider();
    Soft soft = gsSoftProvider.searchConfigurable(ss -> {
        ss.withPolicy(new VersionSoftPolicy().onAllPlatforms(maxVersion(new Version(8))));
    });
    soft.getFounds().forEach(sf -> {
        System.out.println(sf.getFoundReason() + "  " + sf.getFile() + "  " + sf.getReason());
    });
    SoftLogger softLogger = new SoftLogger(Collections.singletonList(soft));
    softLogger.log(System.out::println);
// System.out.println(soft);
}
Also used : VersionSoftPolicy(org.fagu.fmv.soft.find.policy.VersionSoftPolicy) GSSoftProvider(org.fagu.fmv.soft.gs.GSSoftProvider) VersionSoftPolicy.maxVersion(org.fagu.fmv.soft.find.policy.VersionSoftPolicy.maxVersion) Version(org.fagu.version.Version) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

VersionSoftPolicy (org.fagu.fmv.soft.find.policy.VersionSoftPolicy)1 VersionSoftPolicy.maxVersion (org.fagu.fmv.soft.find.policy.VersionSoftPolicy.maxVersion)1 GSSoftProvider (org.fagu.fmv.soft.gs.GSSoftProvider)1 Version (org.fagu.version.Version)1 Ignore (org.junit.Ignore)1 Test (org.junit.Test)1