Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-3563

Allow synchronous action for some TestNG tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Test suite
    • Labels:
      None

      Description

      NullPointerEexceptions occur specifically in TestNG execution because one thread has finished and nulled out various fields before another test line acts on a result (calcMan null in AlignCalcWorker, for instance, or mapping is null in StriuctureMapper).

      This branch allows TestNG tests to run on Bob's computer without spawning unnecessary threads or using SwingUtilities.invokeLater.

      Clearly it does not fully test Jalview's multithreading. What it does is optionally test functionality without resulting in unidentified failures simply due to the test not waiting long enough for an asynchronous process to complete.

      Also could be useful in headless environments.

        Attachments

          Activity

            People

            Assignee:
            hansonr Bob Hanson
            Reporter:
            hansonr Bob Hanson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: