RuleModeller extends Composite implements
        RuleModelEditor { public void setRuleNamesForPackage(final Collection<String> ruleNames) { ruleSelector.setRuleNames(ruleNames, model.name); } RuleModeller(final RuleModel model,
                        final Collection<RuleModellerActionPlugin> actionPlugins,
                        final AsyncPackageDataModelOracle oracle,
                        final ModellerWidgetFactory widgetFactory,
                        final EventBus eventBus,
                        final boolean isReadOnly,
                        final boolean isDSLEnabled);  RuleModeller(final RuleModel model,
                        final AsyncPackageDataModelOracle oracle,
                        final ModellerWidgetFactory widgetFactory,
                        final EventBus eventBus,
                        final boolean isReadOnly);  RuleModeller(final RuleModel model,
                        final Collection<RuleModellerActionPlugin> actionPlugins,
                        final AsyncPackageDataModelOracle oracle,
                        final ModellerWidgetFactory widgetFactory,
                        final RuleModellerConfiguration configuration,
                        final EventBus eventBus,
                        final boolean isReadOnly); void setRuleNamesForPackage(final Collection<String> ruleNames); void initWidget(); boolean showRHS(); boolean lockRHS(); boolean showLHS(); boolean lockLHS(); void refreshWidget(); RuleModel getModel(); Collection<RuleModellerActionPlugin> getActionPlugins(); boolean isVariableNameUsed(String name); AsyncPackageDataModelOracle getDataModelOracle(); ModellerWidgetFactory getWidgetFactory(); RuleModeller getRuleModeller(); Map<String, Object> getServiceInvocationCache(); boolean isTemplate(); Path getPath(); boolean isReadOnly(); boolean isDSLEnabled();  }
@Test public void testSetRuleNamesForPackage() throws Exception { model.name = "rule 1"; ruleModeller.setRuleNamesForPackage(Collections.singleton("rule 2")); verify(ruleSelector).setRuleNames(Collections.singleton("rule 2"), "rule 1"); }