private List<FEELProfile> getFEELProfilesForTests() { final List<FEELProfile> profiles = new ArrayList<>(); if (testFEELTarget == FEEL_TARGET.JAVA_TRANSLATED) { profiles.add(new DoCompileFEELProfile()); } if (useExtendedProfile) { profiles.add(new KieExtendedFEELProfile()); } return profiles; } }
@Test public void testExpression() { feel = (testFEELTarget == FEEL_TARGET.JAVA_TRANSLATED) ? FEEL.newInstance(Collections.singletonList(new DoCompileFEELProfile())) : FEEL.newInstance(); assertResult( expression, inputTypes, inputValues, result ); }