1024N/A * The contents of this file are subject to the terms of the 1024N/A * Common Development and Distribution License (the "License"). 1024N/A * You may not use this file except in compliance with the License. 1024N/A * language governing permissions and limitations under the License. 1024N/A * When distributing Covered Code, include this CDDL HEADER in each 1024N/A * If applicable, add the following below this CDDL HEADER, with the 1024N/A * fields enclosed by brackets "[]" replaced with your own identifying 1024N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1024N/A * Copyright 2010 Sun Microsystems, Inc. All rights reserved. 1024N/A * Use is subject to license terms. 150N/A * Tests for the functionality provided by the AnalyzerGuru class. 150N/A * Test that we get the correct analyzer if the file name exactly matches a 1024N/A byte[]
xml = {(
byte)
0xEF, (
byte)
0xBB, (
byte)
0xBF,
// UTF-8 BOM 200N/A '<',
'?',
'x',
'm',
'l',
' ',
200N/A 'v',
'e',
'r',
's',
'i',
'o',
'n',
'=',
1024N/A '"',
'1',
'.',
'0',
'"',
'?',
'>'};
1024N/A byte[]
bytes = {(
byte)
0xEF, (
byte)
0xBB, (
byte)
0xBF,
// UTF-8 BOM 953N/A 'h',
'e',
'l',
'l',
'o',
' ',
953N/A 'w',
'o',
'r',
'l',
'd'};
210N/A // should not find analyzer for this unlikely extension 210N/A // should be the same factory as the built-in analyzer for sh scripts 210N/A // add an analyzer for the extension and see that it is picked up 210N/A // remove the mapping and verify that it is gone 483N/A * Test that matching of full names works. Bug #859.