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

Add test cases to AppContentTest jpackage test

XMLWordPrintable

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

      The following test cases are missing in AppContentTest and must be added:

       - same file/directory specified multiple times:
          run "jpackage ... --app-content foo,foo"; jpackage should successfully handle this input

       - same file name with different contents in two input folders:
          create a text file foo/file.txt with the text "Hello"
          create a text file bar/file.txt with the text "Goodbye"
          run "jpackage ... --app-content foo/file.txt,bar/file.txt"; the contents of "file.txt" file in the output app image should be "Goodbye"

       - same file name, but one is a file, another is a directory:
          create an empty file foo/a
          create an empty file foo/a/b
          run "jpackage ... --app-content foo/a,bar/a"; the output app image should have "a/b" empty file.
          run "jpackage ... --app-content bar/a,foo/a"; the output app image should have "a" empty file.

      - test that files supplied with --app-content can overwrite files produced by jpackage, e.g. replace the default app launcher executable with the file from --app-content

       - repeat all test cases for app image bundling

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

              Created:
              Updated: