ad9f8480c8e08b95d6c217ec4a126bd93b7f376a,tests/python/pants_test/backend/jvm/targets/test_jvm_app.py,BundleTest,test_bundle_filemap_dest_relative,#BundleTest#,224
Before Change
)
"""))
app = self.target("src/java/org/archimedes/crown")
for k in app.bundles[0].filemap.keys():
if k.endswith("archimedes/crown/gold/config/five.xml"):
fivexml_key = k
self.assertEquals(app.bundles[0].filemap[fivexml_key],
"config/five.xml")
def test_bundle_filemap_dest_remap(self):
After Change
self.assertEqual({one: "config/one.xml", two: "config/two.xml"}, app.bundles[0].filemap)
def test_bundle_filemap_dest_relative(self):
spec_path = "src/java/org/archimedes/crown"
five = self.create_file(os.path.join(spec_path, "gold/config/five.xml"))
unused = self.make_target(Address(spec_path, "unused").spec, JvmBinary)
app = self.make_target(spec_path,
JvmApp,
dependencies=[unused],
bundles=[self.create_bundle(spec_path,
relative_to="gold",
fileset="gold/config/five.xml")])
self.assertEqual(1, len(app.bundles))
self.assertEqual({five: "config/five.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_relative
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