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

java/security/AccessController/DoPrivAccompliceTest.java has to be improved

    XMLWordPrintable

    Details

      Description

      there is a couple issue w/ DoPrivAccompliceTest.java test:
       - it's semi-automatic test, although it checks whether a spawn jvm exits gracefully, the test won't fail if it does not
       - "negative" case is not covered. the test does not check that DoPrivTest.jar does not have rights to read 'user.home' property
      - the test uses its own testlibrary to create a jar, start a jvm, while there is a common testlibrary for the same use cases.
      - the test does not follow code style, it's hard to read it, especially createPolicyFile method.
      - the test creates files in class files directory which can affect other tests results

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              iignatyev Igor Ignatyev (Inactive)
              Reporter:
              iignatyev Igor Ignatyev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: