@Test public void testRuleModeller() throws Exception { when(brlActionPlugin.getRuleModel()).thenReturn(new RuleModel()); when(brlActionPlugin.tableFormat()).thenReturn(GuidedDecisionTable52.TableFormat.EXTENDED_ENTRY); when(brlActionPlugin.getRuleModellerActionPlugins()).thenReturn(Collections.singletonList(ruleModellerActionPlugin)); when(brlActionPlugin.getRuleModellerConfiguration()).thenReturn(mock(RuleModellerConfiguration.class)); when(presenter.getDataModelOracle()).thenReturn(mock(AsyncPackageDataModelOracle.class)); final RuleModeller ruleModeller = brlActionPage.ruleModeller(); assertNotNull(ruleModeller); assertEquals(brlActionPlugin.getRuleModel(), ruleModeller.getModel()); assertEquals(Collections.singletonList(ruleModellerActionPlugin), ruleModeller.getActionPlugins()); assertEquals(presenter.getDataModelOracle(), ruleModeller.getDataModelOracle()); assertTrue(ruleModeller.getWidgetFactory() instanceof TemplateModellerWidgetFactory); assertFalse(ruleModeller.isReadOnly()); }
RuleModeller ruleModeller() { if (ruleModeller == null) { ruleModeller = newRuleModeller(); } return ruleModeller; }
RuleModellerPage extends BaseDecisionTableColumnPage<T> { RuleModeller ruleModeller() { if (ruleModeller == null) { ruleModeller = newRuleModeller(); } return ruleModeller; } }
RuleModellerPage extends BaseDecisionTableColumnPage<T> { RuleModeller ruleModeller() { if (ruleModeller == null) { ruleModeller = newRuleModeller(); } return ruleModeller; } @Inject  RuleModellerPage(final View view,
                            final TranslationService translationService); }
RuleModellerPage extends BaseDecisionTableColumnPage<T> { RuleModeller ruleModeller() { if (ruleModeller == null) { ruleModeller = newRuleModeller(); } return ruleModeller; } @Inject  RuleModellerPage(final View view,
                            final TranslationService translationService); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView(); }
RuleModellerPage extends BaseDecisionTableColumnPage<T> { RuleModeller ruleModeller() { if (ruleModeller == null) { ruleModeller = newRuleModeller(); } return ruleModeller; } @Inject  RuleModellerPage(final View view,
                            final TranslationService translationService); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView();  }