use of org.fagu.fmv.soft.SoftExecutor.Executed in project fmv by f-agu.
the class SoftTestCase method test2.
@Test
@Ignore
public void test2() throws Exception {
Soft soft = Soft.withExecFile("cmd");
System.out.println(soft);
System.out.println(soft.getFounds());
ExecutorService executorService = Executors.newSingleThreadExecutor();
System.out.println(1);
soft.withoutParameter().ifExceptionDo(e -> {
System.out.println("error exec");
}).execute();
System.out.println(2);
Future<Executed> future = soft.withoutParameter().ifExceptionDo(e -> {
System.out.println("error exec bg");
}).executeInBackground(executorService);
System.out.println(new Date());
System.out.println(future.get());
}
Aggregations