@Test public void testValidatePackageName_GOOD1() throws Exception { System.out.println("testValidatePackageName_GOOD1"); Generator instance = new Generator(); instance.packageOfJavaModel = "hu.vanio.easydao.demo"; instance.validatePackageName("packageOfJavaModel", instance.packageOfJavaModel); }
protected void validatePackageName(String name, String value) throws MojoExecutionException { if (value == null || value.trim().length() == 0 || !value.matches(PACKAGE_PATTERN)) { throw new MojoExecutionException("EasyDao engine configuration exception: wrong " + name + ". Required field, regExp: " + PACKAGE_PATTERN); } }
Generator extends AbstractMojo { protected void validatePackageName(String name, String value) throws MojoExecutionException { if (value == null || value.trim().length() == 0 || !value.matches(PACKAGE_PATTERN)) { throw new MojoExecutionException("EasyDao engine configuration exception: wrong " + name + ". Required field, regExp: " + PACKAGE_PATTERN); } } }
Generator extends AbstractMojo { protected void validatePackageName(String name, String value) throws MojoExecutionException { if (value == null || value.trim().length() == 0 || !value.matches(PACKAGE_PATTERN)) { throw new MojoExecutionException("EasyDao engine configuration exception: wrong " + name + ". Required field, regExp: " + PACKAGE_PATTERN); } }  }
Generator extends AbstractMojo { protected void validatePackageName(String name, String value) throws MojoExecutionException { if (value == null || value.trim().length() == 0 || !value.matches(PACKAGE_PATTERN)) { throw new MojoExecutionException("EasyDao engine configuration exception: wrong " + name + ". Required field, regExp: " + PACKAGE_PATTERN); } }  void execute(); }
Generator extends AbstractMojo { protected void validatePackageName(String name, String value) throws MojoExecutionException { if (value == null || value.trim().length() == 0 || !value.matches(PACKAGE_PATTERN)) { throw new MojoExecutionException("EasyDao engine configuration exception: wrong " + name + ". Required field, regExp: " + PACKAGE_PATTERN); } }  void execute();  }