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

BMUnit does not allow AFTER targetLocation values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.0.0
    • 1.6.0
    • Contrib
    • None
    • Workaround Exists
    • Hide

      Use @BMScript and store the rule in an external file

      Show
      Use @BMScript and store the rule in an external file

    Description

      When a targetLocation attribute is added to @BMRule, BMRunnerUtil appends "AT " followed by the value to the rule text. This means you can only use location specifiers that start with AT and not the ones which start with AFTER.

      Appending the value directly would let you use AFTER specifiers (and any added in future), but break backwards compatibility. I see three options:
      1) switch to requiring the full specifier in future, and break backwards compatibility
      2) switch to requiring the full specifier in future, and handle prepend AT for anything starting with an existing specifier ("ENTRY", "INVOKE" etc)
      3) check if the specifier starts with AFTER and do not prepend AT in that case. Do the same in future if there are any new first words

      Attachments

        Activity

          People

            rhn-engineering-adinn Andrew Dinn
            rhn-support-jlivings James Livingston (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: