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

TestStackTrace unit test hard-codes fragile line numbers

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 2.0.3
    • 2.0.1
    • Rule Helpers
    • None

      org.jboss.byteman.tests.helpertests.TestStackTrace tests output which includes line numbers, which will cause the test to fail if you edit it in a way that causes line numbers to change. This is annoying to deal with if you are changing the test, and would be nice to fix.

      Testing correct behaviour really only needs the method name to be verified, so the line numbers could be ignored. Implementing a fix for this would require changes to how the output is checked, since it currently creates a string from the expected values and compares it to the result.

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

                Created:
                Updated:
                Resolved: