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.
Support uplaoding of rules from any jar on the classpath by supplying a list of InputStream
- Andrew Dinn
- Andrew Dinn
- Votes:
-
0 Vote for this issue
- Watchers:
-
1 Start watching this issue
- Created:
- Updated:
- Resolved: