3b77f6b6c38fea6616cae10ca8e0c3a20782934a,tests/python/pants_test/backend/jvm/subsystems/test_jar_dependency_management.py,JarDependencyManagementTest,test_conflict_strategy_use_newer,#JarDependencyManagementTest#,88
Before Change
))
def test_conflict_strategy_use_newer(self):
with self._jar_dependency_management(conflict_strategy="USE_NEWER") as manager:
self.assertEquals(self._coord_two, manager.resolve_version_conflict(
direct_coord=self._coord_one,
managed_coord=self._coord_two,
))
self.assertEquals(self._coord_two, manager.resolve_version_conflict(
direct_coord=self._coord_two,
managed_coord=self._coord_one,
))
def test_conflict_resolution_input_validation(self):
with self._jar_dependency_management() as manager:
with self.assertRaises(ValueError):
manager.resolve_version_conflict(M2Coordinate("org", "foo", "1.2"),
After Change
))
def test_conflict_strategy_use_newer(self):
manager = self._jar_dependency_management(conflict_strategy="USE_NEWER")
self.assertEquals(self._coord_two, manager.resolve_version_conflict(
direct_coord=self._coord_one,
managed_coord=self._coord_two,
))
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 5
Instances
Project Name: pantsbuild/pants
Commit Name: 3b77f6b6c38fea6616cae10ca8e0c3a20782934a
Time: 2016-09-12
Author: benjyw@gmail.com
File Name: tests/python/pants_test/backend/jvm/subsystems/test_jar_dependency_management.py
Class Name: JarDependencyManagementTest
Method Name: test_conflict_strategy_use_newer
Project Name: pantsbuild/pants
Commit Name: 3b77f6b6c38fea6616cae10ca8e0c3a20782934a
Time: 2016-09-12
Author: benjyw@gmail.com
File Name: tests/python/pants_test/backend/jvm/subsystems/test_jar_dependency_management.py
Class Name: JarDependencyManagementTest
Method Name: test_conflict_strategy_use_managed
Project Name: pantsbuild/pants
Commit Name: 3b77f6b6c38fea6616cae10ca8e0c3a20782934a
Time: 2016-09-12
Author: benjyw@gmail.com
File Name: tests/python/pants_test/backend/jvm/subsystems/test_jar_dependency_management.py
Class Name: JarDependencyManagementTest
Method Name: test_conflict_strategy_fail
Project Name: pantsbuild/pants
Commit Name: 3b77f6b6c38fea6616cae10ca8e0c3a20782934a
Time: 2016-09-12
Author: benjyw@gmail.com
File Name: tests/python/pants_test/backend/jvm/subsystems/test_jar_dependency_management.py
Class Name: JarDependencyManagementTest
Method Name: test_conflict_resolution_input_validation
Project Name: pantsbuild/pants
Commit Name: 3b77f6b6c38fea6616cae10ca8e0c3a20782934a
Time: 2016-09-12
Author: benjyw@gmail.com
File Name: tests/python/pants_test/backend/jvm/subsystems/test_jar_dependency_management.py
Class Name: JarDependencyManagementTest
Method Name: test_conflict_strategy_use_direct
Project Name: pantsbuild/pants
Commit Name: 3b77f6b6c38fea6616cae10ca8e0c3a20782934a
Time: 2016-09-12
Author: benjyw@gmail.com
File Name: tests/python/pants_test/backend/jvm/subsystems/test_jar_dependency_management.py
Class Name: JarDependencyManagementTest
Method Name: test_conflict_strategy_short_circuits
Project Name: pantsbuild/pants
Commit Name: 3b77f6b6c38fea6616cae10ca8e0c3a20782934a
Time: 2016-09-12
Author: benjyw@gmail.com
File Name: tests/python/pants_test/backend/jvm/subsystems/test_jar_dependency_management.py
Class Name: JarDependencyManagementTest
Method Name: test_conflict_strategy_use_forced