PatternToDeletePage extends BaseDecisionTableColumnPage<ActionRetractFactPlugin> { List<String> getLHSBoundFacts() { final BRLRuleModel brlRuleModel = new BRLRuleModel(presenter.getModel()); return brlRuleModel.getLHSBoundFacts(); } @Inject  PatternToDeletePage(final View view,
                               final TranslationService translationService); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView();  }
@Test public void testGetLHSBoundFacts() throws Exception { final ArrayList<Pattern52> patterns = new ArrayList<Pattern52>() {{ add(pattern("pattern1")); add(pattern("pattern2")); }}; final ArrayList<String> expectedLHSBoundFacts = new ArrayList<String>() {{ add("pattern1"); add("pattern2"); }}; doReturn(model).when(presenter).getModel(); doReturn(patterns).when(model).getConditions(); final List<String> lhsBoundFacts = page.getLHSBoundFacts(); assertEquals(expectedLHSBoundFacts, lhsBoundFacts); }