ad9f8480c8e08b95d6c217ec4a126bd93b7f376a,tests/python/pants_test/backend/jvm/targets/test_jvm_app.py,JvmAppTest,test_not_a_binary,#JvmAppTest#,152
Before Change
app.binary
def test_not_a_binary(self):
self.add_to_build_file("src/java/org/archimedes/buoyancy/BUILD", dedent("""
jvm_app(name="buoyancy",
binary=":bin",
bundles=[
bundle(fileset="config/densities.xml")
]
)
"""))
self.add_to_build_file("src/java/org/archimedes/buoyancy/BUILD", dedent("""
jvm_app(name="buoyancy2",
binary=":buoyancy",
bundles=[
bundle(fileset="config/densities.xml")
]
)
"""))
app = self.target("src/java/org/archimedes/buoyancy:buoyancy2")
with self.assertRaisesRegexp(TargetDefinitionException,
r"Invalid target JvmApp.*src/java/org/archimedes/buoyancy/BUILD\), "
r"buoyancy2.* Expected JvmApp binary dependency"):
app.binary
After Change
r" A JvmApp must define exactly one"):
app.binary
def test_not_a_binary(self):
self.make_target("src/java/org/archimedes/buoyancy:bin", JvmBinary)
self.create_app("src/java/org/archimedes/buoyancy", name="app", binary=":bin")
app = self.create_app("src/java/org/archimedes/buoyancy", name="app2", binary=":app")
with self.assertRaisesRegexp(TargetDefinitionException,
r"Invalid target JvmApp.*src/java/org/archimedes/buoyancy:app2\).*"
r" Expected JvmApp binary dependency"):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: JvmAppTest
Method Name: test_not_a_binary
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: JvmAppTest
Method Name: test_too_many_binaries_mixed
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: JvmAppTest
Method Name: test_not_a_binary
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: JvmAppTest
Method Name: test_degenerate_binaries