Program: 124760
Project: 124760
Buggy source:
@Test public void testCustomDistribution() throws Exception {
  HadoopComponent distribution=new CustomDistribution();
  assertNotNull(distribution.getDistributionName());
  assertNull(distribution.getVersionName(null));
  assertTrue(distribution.doSupportS3());
  assertEquals(CustomDistribution.DISTRIBUTION_NAME,distribution.getDistribution());
  assertNull(distribution.getVersion());
  assertNull(distribution.getHadoopVersion());
  assertFalse(distribution.doSupportKerberos());
  assertTrue(distribution.doSupportUseDatanodeHostname());
  assertFalse(distribution.doSupportGroup());
  assertTrue(distribution.doSupportOldImportMode());
  assertTrue(((HDFSComponent)distribution).doSupportSequenceFileShortType());
  assertFalse(((MRComponent)distribution).isExecutedThroughWebHCat());
  assertFalse(((MRComponent)distribution).doSupportCrossPlatformSubmission());
  assertTrue(((MRComponent)distribution).doSupportImpersonation());
  assertEquals(DEFAULT_YARN_APPLICATION_CLASSPATH,((MRComponent)distribution).getYarnApplicationClasspath());
  assertFalse(((HBaseComponent)distribution).doSupportNewHBaseAPI());
  assertTrue(((SqoopComponent)distribution).doJavaAPISupportStorePasswordInFile());
  assertFalse(((SqoopComponent)distribution).doJavaAPISqoopImportSupportDeleteTargetDir());
  assertTrue(((SqoopComponent)distribution).doJavaAPISqoopImportAllTablesSupportExcludeTable());
  assertTrue(((PigComponent)distribution).doSupportHCatalog());
  assertFalse(((PigComponent)distribution).pigVersionPriorTo_0_12());
  assertTrue(((PigComponent)distribution).doSupportHBase());
  assertTrue(((PigComponent)distribution).doSupportTezForPig());
  assertTrue(((HiveComponent)distribution).doSupportEmbeddedMode());
  assertTrue(((HiveComponent)distribution).doSupportStandaloneMode());
  assertTrue(((HiveComponent)distribution).doSupportHive1());
  assertTrue(((HiveComponent)distribution).doSupportHive2());
  assertTrue(((HiveComponent)distribution).doSupportTezForHive());
  assertTrue(((HiveComponent)distribution).doSupportHBaseForHive());
  assertTrue(((HiveComponent)distribution).doSupportSSL());
  assertTrue(((HiveComponent)distribution).doSupportORCFormat());
  assertTrue(((HiveComponent)distribution).doSupportAvroFormat());
  assertTrue(((HiveComponent)distribution).doSupportParquetFormat());
  assertFalse(((SparkBatchComponent)distribution).isSpark14());
  assertTrue(((SparkBatchComponent)distribution).isSpark13());
  assertTrue(((SparkBatchComponent)distribution).doSupportDynamicMemoryAllocation());
  assertFalse(((SparkBatchComponent)distribution).isExecutedThroughSparkJobServer());
  assertTrue(((SparkBatchComponent)distribution).doSupportSparkStandaloneMode());
  assertTrue(((SparkBatchComponent)distribution).doSupportSparkYarnClientMode());
  assertFalse(((SparkStreamingComponent)distribution).isSpark14());
  assertTrue(((SparkStreamingComponent)distribution).isSpark13());
  assertTrue(((SparkStreamingComponent)distribution).doSupportDynamicMemoryAllocation());
  assertFalse(((SparkStreamingComponent)distribution).isExecutedThroughSparkJobServer());
  assertTrue(((SparkStreamingComponent)distribution).doSupportCheckpointing());
  assertTrue(((SparkStreamingComponent)distribution).doSupportSparkStandaloneMode());
  assertTrue(((SparkStreamingComponent)distribution).doSupportSparkYarnClientMode());
  assertTrue(((SparkStreamingComponent)distribution).doSupportBackpressure());
  assertFalse(((HiveComponent)distribution).doSupportStoreAsParquet());
  assertFalse(((HiveComponent)distribution).doSupportClouderaNavigator());
  assertTrue(distribution instanceof HCatalogComponent);
  assertTrue(distribution instanceof ImpalaComponent);
}

Fixed version (ground truth):
@Test public void testCustomDistribution() throws Exception {
  HadoopComponent distribution=new CustomDistribution();
  assertNotNull(distribution.getDistributionName());
  assertNull(distribution.getVersionName(null));
  assertTrue(distribution.doSupportS3());
  assertEquals(CustomDistribution.DISTRIBUTION_NAME,distribution.getDistribution());
  assertNull(distribution.getVersion());
  assertNull(distribution.getHadoopVersion());
  assertTrue(distribution.doSupportKerberos());
  assertTrue(distribution.doSupportUseDatanodeHostname());
  assertFalse(distribution.doSupportGroup());
  assertTrue(distribution.doSupportOldImportMode());
  assertTrue(((HDFSComponent)distribution).doSupportSequenceFileShortType());
  assertFalse(((MRComponent)distribution).isExecutedThroughWebHCat());
  assertFalse(((MRComponent)distribution).doSupportCrossPlatformSubmission());
  assertTrue(((MRComponent)distribution).doSupportImpersonation());
  assertEquals(DEFAULT_YARN_APPLICATION_CLASSPATH,((MRComponent)distribution).getYarnApplicationClasspath());
  assertFalse(((HBaseComponent)distribution).doSupportNewHBaseAPI());
  assertTrue(((SqoopComponent)distribution).doJavaAPISupportStorePasswordInFile());
  assertFalse(((SqoopComponent)distribution).doJavaAPISqoopImportSupportDeleteTargetDir());
  assertTrue(((SqoopComponent)distribution).doJavaAPISqoopImportAllTablesSupportExcludeTable());
  assertTrue(((PigComponent)distribution).doSupportHCatalog());
  assertFalse(((PigComponent)distribution).pigVersionPriorTo_0_12());
  assertTrue(((PigComponent)distribution).doSupportHBase());
  assertTrue(((PigComponent)distribution).doSupportTezForPig());
  assertTrue(((HiveComponent)distribution).doSupportEmbeddedMode());
  assertTrue(((HiveComponent)distribution).doSupportStandaloneMode());
  assertTrue(((HiveComponent)distribution).doSupportHive1());
  assertTrue(((HiveComponent)distribution).doSupportHive2());
  assertTrue(((HiveComponent)distribution).doSupportTezForHive());
  assertTrue(((HiveComponent)distribution).doSupportHBaseForHive());
  assertTrue(((HiveComponent)distribution).doSupportSSL());
  assertTrue(((HiveComponent)distribution).doSupportORCFormat());
  assertTrue(((HiveComponent)distribution).doSupportAvroFormat());
  assertTrue(((HiveComponent)distribution).doSupportParquetFormat());
  assertFalse(((SparkBatchComponent)distribution).isSpark14());
  assertTrue(((SparkBatchComponent)distribution).isSpark13());
  assertTrue(((SparkBatchComponent)distribution).doSupportDynamicMemoryAllocation());
  assertFalse(((SparkBatchComponent)distribution).isExecutedThroughSparkJobServer());
  assertTrue(((SparkBatchComponent)distribution).doSupportSparkStandaloneMode());
  assertTrue(((SparkBatchComponent)distribution).doSupportSparkYarnClientMode());
  assertFalse(((SparkStreamingComponent)distribution).isSpark14());
  assertTrue(((SparkStreamingComponent)distribution).isSpark13());
  assertTrue(((SparkStreamingComponent)distribution).doSupportDynamicMemoryAllocation());
  assertFalse(((SparkStreamingComponent)distribution).isExecutedThroughSparkJobServer());
  assertTrue(((SparkStreamingComponent)distribution).doSupportCheckpointing());
  assertTrue(((SparkStreamingComponent)distribution).doSupportSparkStandaloneMode());
  assertTrue(((SparkStreamingComponent)distribution).doSupportSparkYarnClientMode());
  assertTrue(((SparkStreamingComponent)distribution).doSupportBackpressure());
  assertFalse(((HiveComponent)distribution).doSupportStoreAsParquet());
  assertFalse(((HiveComponent)distribution).doSupportClouderaNavigator());
  assertTrue(distribution instanceof HCatalogComponent);
  assertTrue(distribution instanceof ImpalaComponent);
}