コード例 #1
0
 @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());
 }
コード例 #2
0
 /** 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());
 }
コード例 #3
0
 @Test
 public void rfe2969() {
   IFileAnalyzerFactory faf = AnalyzerGuru.find("foo.hxx");
   assertNotNull(faf);
   assertSame(CxxAnalyzerFactory.class, faf.getClass());
 }