AnalyzerGuruTest.java revision 670
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 200N/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',
'=',
200N/A '"',
'1',
'.',
'0',
'"',
'?',
'>' };
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.