

def _test_explicit_package(self, expected_package, version):
    self.add_to_build_file(self.BUILDFILE, dedent("\n      java_antlr_library(\n        name='{name}',\n        compiler='antlr{version}',\n        package='this.is.a.package',\n        sources=['{prefix}.g{version}'],\n      )\n    ".format(version=version, **self.PARTS)))
    self.execute_antlr_test(expected_package)

dataset/ETHPy150Open pantsbuild/pants/tests/python/pants_test/backend/codegen/tasks/test_antlr_gen.py AntlrGenTest._test_explicit_package/original