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

Add test to verify that com.sun.net.httpserver.BasicAuthenticator constructors throw expected exceptions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 14
    • Fix Version/s: 14
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b13

      Description

      The com.sun.net.httpserver.BasicAuthenticator constructors specifies that NullPointerException will be thrown if realm or charset are {@code null}
      and IllegalArgumentException will be thrown if realm is an empty string.

      We need to add a test for those assertions.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pconcannon Patrick Concannon (Inactive)
              Reporter:
              dfuchs Daniel Fuchs
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: