Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8333571

Replace ExpectedException with assertThrows() calls in jpackage unit tests

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • 24
    • None
    • tools
    • None
    • generic
    • generic

      The use of org.junit.rules.ExpectedException class to test for exceptions is bulky. Replace it with Assert#assertThrows() Junit4 calls. This should allow merging DottedVersionTest and InvalidDottedVersionTest tests.

            asemenyuk Alexey Semenyuk
            asemenyuk Alexey Semenyuk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: