6e0a6ece0ccda7dfe7d989b721f853aa5fedc063,tests/python/pants_test/tasks/jvm_compile/java/test_java_compile_integration.py,JavaCompileIntegrationTest,test_java_compile_reads_resource_mapping,#JavaCompileIntegrationTest#,108

Before Change


          for name in files:
            path = os.path.join(dirpath, name)
            all_files.add(path)
        self.assertIn(os.path.join(extract_dir, "compile/jvm/java/classes/deprecation_report.txt"), all_files)

  def _whitelist_test(self, target, fatal_flag, whitelist):
    // We want to ensure that a project missing dependencies can be
    // whitelisted so that the missing deps do not break the build.

After Change


        report_file_name = os.path.join(extract_dir, "compile/jvm/java/classes/deprecation_report.txt")
        self.assertIn(report_file_name, all_files)

        annotated_classes = [line.rstrip() for line in file(report_file_name).read().splitlines()]
        self.assertEquals(
          {"com.pants.testproject.annotation.main.Main", "com.pants.testproject.annotation.main.Main$TestInnerClass"},
          set(annotated_classes))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: 6e0a6ece0ccda7dfe7d989b721f853aa5fedc063
Time: 2014-12-15
Author: wangpeiyu@gmail.com
File Name: tests/python/pants_test/tasks/jvm_compile/java/test_java_compile_integration.py
Class Name: JavaCompileIntegrationTest
Method Name: test_java_compile_reads_resource_mapping


Project Name: allenai/allennlp
Commit Name: 85b2c2d2b9fa8bbaa3335d889c610e46d253e6cc
Time: 2018-01-03
Author: markn@allenai.org
File Name: tests/data/dataset_readers/coref_reader_test.py
Class Name: TestCorefReader
Method Name: test_read_from_file


Project Name: kubeflow/kubeflow
Commit Name: ac649bff69dbce9c4169cff5ec09d7b8da017f1c
Time: 2018-08-01
Author: lunkai@google.com
File Name: testing/test_tf_serving.py
Class Name:
Method Name: main


Project Name: biocore/scikit-bio
Commit Name: 29cfcaa060931072f721c929c320fd78aceeb05d
Time: 2015-08-07
Author: jai.rideout@gmail.com
File Name: skbio/tree/tests/test_tree.py
Class Name: TreeTests
Method Name: test_tip_tip_distances_no_length


Project Name: prody/ProDy
Commit Name: d8ecf024187a2abf7bf66de74e0dc2472bfb9850
Time: 2012-11-30
Author: lordnapi@gmail.com
File Name: lib/prody/tests/test_utilities/test_pathtools.py
Class Name: TestGunzip
Method Name: testBuffer


Project Name: mlflow/mlflow
Commit Name: 43700cb838992fddef848cff7f1a37197b035ee0
Time: 2019-05-22
Author: smurching@gmail.com
File Name: tests/store/test_sqlalchemy_store_schema.py
Class Name:
Method Name: _assert_schema_files_equal