Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-7241

Issue running test for RuleUnitDefinition in drools version 8.29.0.Final

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 8.29.0.Final
    • None
    • None
    • 2022 Week 44-46 (from Oct 31)
    • NEW
    • NEW
    • ---
    • ---

      Looking at test defined here:

      public void testHelloWorld()

      { HelloWorldUnit unit = new HelloWorldUnit(); unit.getStrings().add("Hello World"); assertThat(unit.fire()).isEqualTo(2); assertThat(unit.getResults()).containsExactlyInAnyOrder("it worked!", "it also worked with HELLO WORLD"); unit.getResults().clear(); unit.getInts().add(11); assertThat(unit.fire()).isEqualTo(1); assertThat(unit.getResults()).containsExactly("String 'Hello World' is 11 characters long"); }

       

      Link:

      Build, Deploy, Utilize and Run :: Drools Documentation

       

      This test does not compile:

      unit.fire() <-- does not compile. if you can update this documentation to run the test, it will be great. 

              mfusco@redhat.com Mario Fusco
              utish.raj@gmail.com utish raj (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: