ExpressionParserSettings { public Collection<? extends String> getSelectedSubparsers() { return selectedSubparsers; } ExpressionParserSettings(ExpressionParserSettingsBuilder builder); Collection<? extends String> getSelectedSubparsers(); SelectedMode getSelectedMode(); boolean isStandaloneOnly(); static ExpressionParserSettingsBuilder create(); static final ExpressionParserSettings DEFAULT; }
@Test void withSelectedSubparsers() { Assertions.assertEquals(Collections.singletonList("a"), init().withSelectedSubparsers("a").build().getSelectedSubparsers()); Assertions.assertNotEquals(Collections.singletonList("a"), init().withSelectedSubparsers(Collections.emptyList()).build().getSelectedSubparsers()); }