Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-194

policy/drools-applications: fix template to enable JUnits

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Amsterdam Release
    • Amsterdam Release
    • None

      As discussed, in the template.demo module of drools-applications under src/test/java in the org.onap.policy.template.demo package, there is a class called ControlLoopXacmlGuardTest.java in which one test case exists with an @Ignore annotation. If you remove the annotation, you will find that the Policy.java fields have been changed to private so they are no longer accessible without using the getters and setters that are defined.

      I think this may be the only reason why these test cases fail. When I played around with it and used the getters and setters, there was a problem with gson but I think that was because the dependencies on the project were not built (I never tried it though). Let me know if you need more information

            jhh jhh
            jhh jhh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: