79d358a10723d9a1c9cef7aed16ccc5a693f3f6c,tests/python/pants_test/backend/jvm/tasks/test_binary_create.py,TestBinaryCreate,test_jvm_binaries_deploy_excludes,#TestBinaryCreate#,58

Before Change


  def test_jvm_binaries_deploy_excludes(self):
    foo_jar_lib = self.make_target(spec="3rdparty/jvm/org/example:foo",
                                   target_type=JarLibrary,
                                   jars=[JarDependency(org="org.example", name="foo", rev="1.0.0")])
    binary_target = self.make_target(spec="//bar:bar-binary",
                                     target_type=JvmBinary,
                                     source="Bar.java",
                                     dependencies=[foo_jar_lib],
                                     deploy_excludes=[Exclude(org="org.pantsbuild")])
    context = self.context(target_roots=[binary_target])
    classpath_products = self.ensure_classpath_products(context)

    foo_artifact = self.create_artifact(org="org.example", name="foo", rev="1.0.0")

After Change


                               "bar.txt"]),
                       sorted(jar.namelist()))

  def test_jvm_binaries_deploy_excludes(self):
    self.add_to_build_file(
      "3rdparty/jvm/org/example",
      "jar_library(name = "foo", jars = [jar(org = "org.example", name = "foo", rev = "1.0.0")])",
    )
    foo_jar_lib = self.target("3rdparty/jvm/org/example:foo")

    self.add_to_build_file(
      "bar",
      """jvm_binary(
  name = "bar-binary",
  source = "Bar.java",
  dependencies = ["3rdparty/jvm/org/example:foo"],
  deploy_excludes = [exclude(org = "org.pantsbuild")],
)"""
    )
    binary_target = self.target("//bar:bar-binary")
    context = self.context(target_roots=[binary_target])
    classpath_products = self.ensure_classpath_products(context)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: 79d358a10723d9a1c9cef7aed16ccc5a693f3f6c
Time: 2018-06-11
Author: dawagner@gmail.com
File Name: tests/python/pants_test/backend/jvm/tasks/test_binary_create.py
Class Name: TestBinaryCreate
Method Name: test_jvm_binaries_deploy_excludes


Project Name: pantsbuild/pants
Commit Name: 79d358a10723d9a1c9cef7aed16ccc5a693f3f6c
Time: 2018-06-11
Author: dawagner@gmail.com
File Name: tests/python/pants_test/backend/jvm/tasks/test_binary_create.py
Class Name: TestBinaryCreate
Method Name: test_jvm_binaries_deploy_excludes


Project Name: pantsbuild/pants
Commit Name: 2de82e5be2b80033ec910b60a9192242f19cc435
Time: 2018-09-18
Author: dawagner@gmail.com
File Name: tests/python/pants_test/backend/jvm/tasks/test_classmap.py
Class Name: ClassmapTaskTest
Method Name: setUp


Project Name: pantsbuild/pants
Commit Name: 79d358a10723d9a1c9cef7aed16ccc5a693f3f6c
Time: 2018-06-11
Author: dawagner@gmail.com
File Name: tests/python/pants_test/backend/jvm/targets/test_jvm_binary.py
Class Name: JvmBinaryTest
Method Name: test_manifest_bad_key