Program: 137292
Project: 137292
Buggy source:
/** 
 * Test method for  {@link org.talend.dq.dbms.DbmsLanguageFactory#compareDbmsLanguage(java.lang.String,java.lang.String)}.
 */
@Test public void testCompareDbmsLanguage(){
  String dbType="String_Node_Str";
  Assert.isTrue(DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.MYSQL));
  dbType="String_Node_Str";
  Assert.isTrue(DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.MYSQL));
  dbType="String_Node_Str";
  Assert.isTrue(DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.MYSQL));
  dbType="String_Node_Str";
  Assert.isTrue(!DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.MYSQL));
  dbType="String_Node_Str";
  Assert.isTrue(DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.MSSQL));
  dbType="String_Node_Str";
  Assert.isTrue(DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.MSSQL));
  dbType="String_Node_Str";
  Assert.isTrue(DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.MSSQL));
  dbType="String_Node_Str";
  Assert.isTrue(!DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.MSSQL));
  dbType="String_Node_Str";
  Assert.isTrue(DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.ORACLE));
  dbType="String_Node_Str";
  Assert.isTrue(DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.ORACLE));
  dbType="String_Node_Str";
  Assert.isTrue(DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.ORACLE));
  dbType="String_Node_Str";
  Assert.isTrue(!DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.ORACLE));
}

Fixed version (ground truth):
/** 
 * Test method for  {@link org.talend.dq.dbms.DbmsLanguageFactory#compareDbmsLanguage(java.lang.String,java.lang.String)}.
 */
@Test public void testCompareDbmsLanguage(){
  String dbType="String_Node_Str";
  Assert.assertEquals(true,DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.MYSQL));
  dbType="String_Node_Str";
  Assert.assertEquals(true,DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.MYSQL));
  dbType="String_Node_Str";
  Assert.assertEquals(true,DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.MYSQL));
  dbType="String_Node_Str";
  Assert.assertEquals(false,DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.MYSQL));
  dbType="String_Node_Str";
  Assert.assertEquals(true,DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.MSSQL));
  dbType="String_Node_Str";
  Assert.assertEquals(true,DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.MSSQL));
  dbType="String_Node_Str";
  Assert.assertEquals(true,DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.MSSQL));
  dbType="String_Node_Str";
  Assert.assertEquals(false,DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.MSSQL));
  dbType="String_Node_Str";
  Assert.assertEquals(true,DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.ORACLE));
  dbType="String_Node_Str";
  Assert.assertEquals(true,DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.ORACLE));
  dbType="String_Node_Str";
  Assert.assertEquals(true,DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.ORACLE));
  dbType="String_Node_Str";
  Assert.assertEquals(false,DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.ORACLE));
  dbType="String_Node_Str";
  Assert.assertEquals(DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.SQL),true);
  Assert.assertEquals(DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.MYSQL),false);
  Assert.assertEquals(DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.MSSQL),false);
  Assert.assertEquals(DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.POSTGRESQL),false);
  dbType="String_Node_Str";
  Assert.assertEquals(DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.SQL),false);
  dbType="String_Node_Str";
  Assert.assertEquals(DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.SQL),false);
  dbType="String_Node_Str";
  Assert.assertEquals(DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.SQL),false);
  dbType="String_Node_Str";
  Assert.assertEquals(DbmsLanguageFactory.compareDbmsLanguage(dbType,DbmsLanguage.SQL),false);
}