3b77f6b6c38fea6616cae10ca8e0c3a20782934a,tests/python/pants_test/backend/jvm/tasks/test_jar_dependency_management_setup.py,TestJarDependencyManagementSetup,test_default_target,#TestJarDependencyManagementSetup#,43
Before Change
JarDependency(org="foobar", name="foobar"),
])
context = self.context(target_roots=[default_target, jar_library])
with self._subsystem(default_target="//foo:management") as manager:
task = self.create_task(context)
task.execute()
artifact_set = manager.for_target(jar_library)
self.assertFalse(artifact_set is None)
self.assertEquals("2", artifact_set[M2Coordinate("foobar", "foobar")].rev)
def test_bad_default(self):
jar_library = self.make_target(spec="//foo:library",
target_type=JarLibrary,
jars=[
After Change
JarDependency(org="foobar", name="foobar"),
])
context = self.context(target_roots=[default_target, jar_library])
manager = self._init_manager(default_target="//foo:management")
task = self.create_task(context)
task.execute()
artifact_set = manager.for_target(jar_library)
self.assertFalse(artifact_set is None)
self.assertEquals("2", artifact_set[M2Coordinate("foobar", "foobar")].rev)
def test_bad_default(self):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: pantsbuild/pants
Commit Name: 3b77f6b6c38fea6616cae10ca8e0c3a20782934a
Time: 2016-09-12
Author: benjyw@gmail.com
File Name: tests/python/pants_test/backend/jvm/tasks/test_jar_dependency_management_setup.py
Class Name: TestJarDependencyManagementSetup
Method Name: test_default_target
Project Name: pantsbuild/pants
Commit Name: 3b77f6b6c38fea6616cae10ca8e0c3a20782934a
Time: 2016-09-12
Author: benjyw@gmail.com
File Name: tests/python/pants_test/backend/jvm/tasks/test_jar_dependency_management_setup.py
Class Name: TestJarDependencyManagementSetup
Method Name: test_heterogenous_for_targets
Project Name: pantsbuild/pants
Commit Name: 3b77f6b6c38fea6616cae10ca8e0c3a20782934a
Time: 2016-09-12
Author: benjyw@gmail.com
File Name: tests/python/pants_test/backend/jvm/tasks/test_jar_dependency_management_setup.py
Class Name: TestJarDependencyManagementSetup
Method Name: test_indirection
Project Name: pantsbuild/pants
Commit Name: 3b77f6b6c38fea6616cae10ca8e0c3a20782934a
Time: 2016-09-12
Author: benjyw@gmail.com
File Name: tests/python/pants_test/backend/jvm/tasks/test_jar_dependency_management_setup.py
Class Name: TestJarDependencyManagementSetup
Method Name: test_explicit_and_default_target