ad9f8480c8e08b95d6c217ec4a126bd93b7f376a,tests/python/pants_test/backend/jvm/targets/test_jvm_app.py,BundleTest,test_bundle_filemap_dest_byglobs,#BundleTest#,202
Before Change
)
"""))
app = self.target("src/java/org/archimedes/tub")
for k in app.bundles[0].filemap.keys():
if k.endswith("archimedes/tub/config/one.xml"):
onexml_key = k
self.assertEquals(app.bundles[0].filemap[onexml_key],
"config/one.xml")
def test_bundle_filemap_dest_relative(self):
After Change
self.assertEqual({densities: "config/densities.xml"}, app.bundles[0].filemap)
def test_bundle_filemap_dest_byglobs(self):
spec_path = "src/java/org/archimedes/tub"
one = self.create_file(os.path.join(spec_path, "config/one.xml"))
two = self.create_file(os.path.join(spec_path, "config/two.xml"))
unused = self.make_target(Address(spec_path, "unused").spec, JvmBinary)
parse_context = self.create_parse_context(spec_path)
globs = Globs(parse_context)
app = self.make_target(spec_path,
JvmApp,
dependencies=[unused],
bundles=[Bundle(parse_context, fileset=globs("config/*.xml"))])
self.assertEqual(1, len(app.bundles))
self.assertEqual({one: "config/one.xml", two: "config/two.xml"}, app.bundles[0].filemap)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 23
Instances
Project Name: pantsbuild/pants
Commit Name: ad9f8480c8e08b95d6c217ec4a126bd93b7f376a
Time: 2015-08-31
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/jvm/targets/test_jvm_app.py
Class Name: BundleTest
Method Name: test_bundle_filemap_dest_byglobs
Project Name: pantsbuild/pants
Commit Name: ad9f8480c8e08b95d6c217ec4a126bd93b7f376a
Time: 2015-08-31
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/jvm/targets/test_jvm_app.py
Class Name: BundleTest
Method Name: test_bundle_add
Project Name: pantsbuild/pants
Commit Name: ad9f8480c8e08b95d6c217ec4a126bd93b7f376a
Time: 2015-08-31
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/jvm/targets/test_jvm_app.py
Class Name: BundleTest
Method Name: test_bundle_filemap_dest_remap
Project Name: pantsbuild/pants
Commit Name: ad9f8480c8e08b95d6c217ec4a126bd93b7f376a
Time: 2015-08-31
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/jvm/targets/test_jvm_app.py
Class Name: BundleTest
Method Name: test_bundle_filemap_dest_byglobs