Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-436

Some DAS tests can never fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • Java-SCA-M2
    • Java DAS RDB
    • None

    Description

      In ExceptionTests, testEmptyStream() and testEmptyStream2() can never fail. They both do something like this:

      try

      { ... fail("Error should be thrown"); }

      catch (Error e)

      { ... }

      JUnit's fail() method throws a subclass of Error, so it is impossible for this to fail. The exception that is expected from the DAS runtime in these tests is also an Error, so the runtime will need to be modified to fix this. The DAS should not be using Error anyway, as it is intended for abnormal and unrecoverable errors.

      Attachments

        1. tuscany436.txt
          5 kB
          Brent Daniel

        Activity

          People

            Unassigned Unassigned
            bdaniel Brent Daniel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: