@Test public void rfe3401() { IFileAnalyzerFactory f1 = AnalyzerGuru.find("main.c"); assertNotNull(f1); IFileAnalyzerFactory f2 = AnalyzerGuru.find("main.cc"); assertNotNull(f2); assertNotSame(f1.getClass(), f2.getClass()); }
/** Test that matching of full names works. Bug #859. */ @Test public void matchesFullName() { char c = File.separatorChar; IFileAnalyzerFactory faf = AnalyzerGuru.find(c + "path" + c + "to" + c + "Makefile"); assertSame(ShAnalyzerFactory.class, faf.getClass()); faf = AnalyzerGuru.find("GNUMakefile"); assertSame(ShAnalyzerFactory.class, faf.getClass()); }
@Test public void rfe2969() { IFileAnalyzerFactory faf = AnalyzerGuru.find("foo.hxx"); assertNotNull(faf); assertSame(CxxAnalyzerFactory.class, faf.getClass()); }