@Test(dataProvider = "packageNameProvider") public void testIsPackageNameValid(String packageName, boolean expectedIsValid) { try { ForceJPAClassGenerator.validatePackageName(packageName); assertTrue(expectedIsValid, "This package name should be invalid: " + packageName); } catch (IllegalArgumentException e) { assertFalse(expectedIsValid, "This package name should be valid: " + packageName); } }
static void validatePackageName(String packageName) { if (!SourceVersion.isName(packageName)) { throw new IllegalArgumentException("Invalid package name: " + packageName); } }
ForceJPAClassGenerator extends AbstractCodeGenerator { static void validatePackageName(String packageName) { if (!SourceVersion.isName(packageName)) { throw new IllegalArgumentException("Invalid package name: " + packageName); } } }
ForceJPAClassGenerator extends AbstractCodeGenerator { static void validatePackageName(String packageName) { if (!SourceVersion.isName(packageName)) { throw new IllegalArgumentException("Invalid package name: " + packageName); } }  }
ForceJPAClassGenerator extends AbstractCodeGenerator { static void validatePackageName(String packageName) { if (!SourceVersion.isName(packageName)) { throw new IllegalArgumentException("Invalid package name: " + packageName); } }  void setPackageName(String packageName); @Override final ObjectFilter getObjectFilter(); final void setObjectFilter(ObjectFilter objectFilter); @Override final FieldFilter getFieldFilter(); final void setFieldFilter(FieldFilter fieldFilter); }
ForceJPAClassGenerator extends AbstractCodeGenerator { static void validatePackageName(String packageName) { if (!SourceVersion.isName(packageName)) { throw new IllegalArgumentException("Invalid package name: " + packageName); } }  void setPackageName(String packageName); @Override final ObjectFilter getObjectFilter(); final void setObjectFilter(ObjectFilter objectFilter); @Override final FieldFilter getFieldFilter(); final void setFieldFilter(FieldFilter fieldFilter);  }