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

Unit Test: TrustDeciderTest throws exception

XMLWordPrintable

        When testGetValidationStateWithUntrustedCertificate() is called, it tests for the validation state. This in turn calls many classes and PKIXValidator.java is one of them. The constructor in this class has a for loop which checks for different certificates and adds the public key into a key list whose scope is within the same for loop (hence not being used at all). Since the getPublicKey() method is tested from the Test file, no implementation is given, instead it throws an exception.

              vrao Vivek Rao (Inactive)
              vrao Vivek Rao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: