Package org.drools.guvnor.client.modeldriven.testing

Examples of org.drools.guvnor.client.modeldriven.testing.VerifyFact


        Button ok = new Button(constants.Add());
        ok.addClickListener(new ClickListener() {
          public void onClick(Widget w) {
            String factName = facts.getItemText(facts.getSelectedIndex());
            sc.insertBetween(ex, new VerifyFact(factName, new ArrayList()));
            renderEditor();
            pop.hide();
          }
        });



        HorizontalPanel h = new HorizontalPanel();
        h.add(facts);
        h.add(ok);
        pop.addAttribute(constants.FactValue(), h);

        //add in list box for anon facts
        final ListBox factTypes = new ListBox();
        for (int i = 0; i < sce.factTypes.length; i++) {
          String ft = sce.factTypes[i];
          factTypes.addItem(ft);
        }

        ok = new Button(constants.Add());
        ok.addClickListener(new ClickListener() {
          public void onClick(Widget w) {
            String t = factTypes.getItemText(factTypes.getSelectedIndex());
            sc.insertBetween(ex, new VerifyFact(t, new ArrayList(), true));
            renderEditor();
            pop.hide();
          }

        });
View Full Code Here



  private void doVerifyFacts(List l, FlexTable layout, int layoutRow, final Scenario scenario) {
    VerticalPanel vert = new VerticalPanel();
    for (Iterator iterator = l.iterator(); iterator.hasNext();) {
      final VerifyFact f = (VerifyFact) iterator.next();
      HorizontalPanel h = new HorizontalPanel();
      h.add(new VerifyFactWidget(f, scenario, sce, showResults));
      Image del = new ImageButton("images/delete_item_small.gif", constants.DeleteTheExpectationForThisFact(), new ClickListener() {     //NON-NLS
        public void onClick(Widget w) {
          if (Window.confirm(constants.AreYouSureYouWantToRemoveThisExpectation())) {
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.modeldriven.testing.VerifyFact

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.