Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8202704 Unicode SQE tests co-location
  3. JDK-8202771

Migrate Unicode character tests to JDK Repo.

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • None
    • core-libs
    • b15
    • Verified

        In JDK repo, the Unicode character related tests cases are under open/test/jdk/java/lang/Character and open/test/jdk/java/lang/String directories.
        In SQE GS-auto repo, there are 30 Unicode character related tests cases need to migrate:
         (1) 16 tests are already covered by existing regression tests, these tests will be dropped.
         (2) 12 tests are not covered by existing regression tests, these tests will be added.
               Add CharPropTest.java to cover the 12 tests. The tests check j.l.Character.isDigit/isLetter/isLetterOrDigit/isSpaceChar/isWhitespace/isTitleCase/isISOControl/isIdentifierIgnorable/isJavaIdentifierStart/isJavaIdentifierPart/isUnicodeIdentifierStart/isUnicodeIdentifierPart methods.
         (3) 2 tests are partially covered by existing regression tests, these tests will be integrated.
              1) Regression test java/lang/Character/CheckBlocks.java checks if every Unicode Block in Blocks.txt have a Filed in Character.UnicodeBlock class. Add a method to check if every Field of Character.UnicodeBlock is a valid Unicode Block in Blocks.txt.
              2) Regression test java/lang/Character/CheckBlocks.java checks Character.UnicodeBlock.of(int codePoint). It only checks three code points for every Unicode Block in Blocks.txt: block head, the code point after head and block end. Add a loop to check all code points between block head and block end.
              3) Move CheckBlocks.java from java/lang/Character to java/lang/Character/UnicodeBlock.
         (4) Remove regression test: java/lang/Character/TestISOControls.java
               It only checks a few values: "-1" and some valid code points. java/lang/Character/TestNegativeCodepoint.java also checks "isISOControl" method with "-1". The new added test CharPropTest.java checks all defined Unicode code points, so delete TestISOControls.java

              dzhou Dora Zhou (Inactive)
              dzhou Dora Zhou (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: