Uploaded image for project: 'Byteman'
  1. Byteman
  2. BYTEMAN-226

Support uplaoding of rules from any jar on the classpath by supplying a list of InputStream

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 2.1.1
    • 2.1.0
    • Tools
    • None

      The current Submit API provides BMUNit with the capability to load rules from a disk file or a resource file found in the classloader context of the current thread via method addRulesFromFiles(List<String> filePaths). Unfortunately, this API does not allow other test driver code to load rule sets located in jars not directly accessible via the context class loader (this is specifically a problem for Arquilian deployed tests). The Submit API could usefully be extended so that it is willing to load rules via an InputStream i.e. with API addRulesFromResources(List<InputStream> resourceStreams). This means that any client which can access the resource and open an input stream to it can also provide it as a source for the rule text to be uploaded. A corresponding removal method deleteRulesFromResources(List<InputStream> resourceStreams) is alos required.

              rhn-engineering-adinn Andrew Dinn
              rhn-engineering-adinn Andrew Dinn
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: