JFlexXrefTest.java revision 1020
1258N/A * The contents of this file are subject to the terms of the 1258N/A * Common Development and Distribution License (the "License"). 1258N/A * You may not use this file except in compliance with the License. 1258N/A * language governing permissions and limitations under the License. 1258N/A * When distributing Covered Code, include this CDDL HEADER in each 1258N/A * If applicable, add the following below this CDDL HEADER, with the 1258N/A * fields enclosed by brackets "[]" replaced with your own identifying 1258N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1258N/A * Copyright 2010 Sun Micosystems. All rights reserved. 1258N/A * Use is subject to license terms. * Unit tests for JFlexXref. * Regression test case for bug #15890. Check that we get the expected the * expected line count from input with some special characters that used "line 4 with \u000B char\n" +
"line 5 with \u000C char\n" +
"line 6 with \u0085 char\n" +
"line 7 with \u2028 char\n" +
"line 8 with \u2029 char\n" +
* Helper method that checks the line count for * {@link #testBug15890LineCount()}. * @param xref an instance of the xref class to test * Regression test case for bug #15890. Check that an anchor is correctly * inserted for definitions that appear after some special characters that * Helper method for {@link #testBug15890Anchor()}. * @param klass the Xref sub-class to test * @param path path to input file with a definition // Input files contain non-ascii characters and are encoded in UTF-8