Search in sources :

Example 1 with PrintlnFunExpr

use of suite.jdk.gen.FunExprM.PrintlnFunExpr in project suite by stupidsing.

the class FunCreatorTest method testRunnable.

@Test
public void testRunnable() {
    PrintlnFunExpr pfe = new PrintlnFunExpr();
    pfe.expression = f.object(1).cast_(String.class);
    FunCreator<Runnable> fc = FunCreator.of(Runnable.class);
    fc.create(() -> pfe).apply(void_).run();
}
Also used : PrintlnFunExpr(suite.jdk.gen.FunExprM.PrintlnFunExpr) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 PrintlnFunExpr (suite.jdk.gen.FunExprM.PrintlnFunExpr)1