JFlexXrefTest.java revision 1166
2c379b9a5f7b4dc665dfdc4673c7b051e7005da1gary.williams * CDDL HEADER START
2c379b9a5f7b4dc665dfdc4673c7b051e7005da1gary.williams * The contents of this file are subject to the terms of the
2c379b9a5f7b4dc665dfdc4673c7b051e7005da1gary.williams * Common Development and Distribution License (the "License").
2c379b9a5f7b4dc665dfdc4673c7b051e7005da1gary.williams * You may not use this file except in compliance with the License.
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac * See LICENSE.txt included in this distribution for the specific
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac * language governing permissions and limitations under the License.
2c379b9a5f7b4dc665dfdc4673c7b051e7005da1gary.williams * When distributing Covered Code, include this CDDL HEADER in each
2c379b9a5f7b4dc665dfdc4673c7b051e7005da1gary.williams * file and include the License file at LICENSE.txt.
2c379b9a5f7b4dc665dfdc4673c7b051e7005da1gary.williams * If applicable, add the following below this CDDL HEADER, with the
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac * fields enclosed by brackets "[]" replaced with your own identifying
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac * information: Portions Copyright [yyyy] [name of copyright owner]
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac * CDDL HEADER END
2c379b9a5f7b4dc665dfdc4673c7b051e7005da1gary.williams * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
2c379b9a5f7b4dc665dfdc4673c7b051e7005da1gary.williamsimport org.opensolaris.opengrok.analysis.c.CXref;
2c379b9a5f7b4dc665dfdc4673c7b051e7005da1gary.williamsimport org.opensolaris.opengrok.analysis.c.CxxXref;
2c379b9a5f7b4dc665dfdc4673c7b051e7005da1gary.williamsimport org.opensolaris.opengrok.analysis.document.TroffXref;
2c379b9a5f7b4dc665dfdc4673c7b051e7005da1gary.williamsimport org.opensolaris.opengrok.analysis.fortran.FortranXref;
2c379b9a5f7b4dc665dfdc4673c7b051e7005da1gary.williamsimport org.opensolaris.opengrok.analysis.java.JavaXref;
2c379b9a5f7b4dc665dfdc4673c7b051e7005da1gary.williamsimport org.opensolaris.opengrok.analysis.lisp.LispXref;
2c379b9a5f7b4dc665dfdc4673c7b051e7005da1gary.williamsimport org.opensolaris.opengrok.analysis.perl.PerlXref;
public class JFlexXrefTest {
"/org/opensolaris/opengrok/index/source.zip"));
@Test
@Test
throws Exception {
@Test
@Test
@Test
{ "#include <abc/def.h>", "#<b>include</b> <<a href=\"/source/s?path=abc\">abc</a>/<a href=\"/source/s?path=abc/def.h\">def.h</a>>" },
{ "#include \"abc.h\"", "#<b>include</b> <span class=\"s\">\"<a href=\"/source/s?path=abc.h\">abc.h</a>\"</span>" },
{ "#include \"abc/def.h\"", "#<b>include</b> <span class=\"s\">\"<a href=\"/source/s?path=abc\">abc</a>/<a href=\"/source/s?path=abc/def.h\">def.h</a>\"</span>" },
@Test