

def test_compile_with_javac_args(self):
    pants_run = self._test_compile('1.7', 'LintyDiamond', dedent('\n      public class LintyDiamond<T> {\n        public static void main(String[] args) {\n          LintyDiamond<String> diamond = new LintyDiamond<>();\n        }\n      }\n    '), platform_args=['-C-Xlint:cast'])
    self.assert_success(pants_run)

dataset/ETHPy150Open pantsbuild/pants/tests/python/pants_test/backend/jvm/tasks/jvm_compile/java/jvm_platform_integration_mixin.py JvmPlatformIntegrationMixin.test_compile_with_javac_args/original