@Test(expected = MojoExecutionException.class) public void testValidateBoolean_WRONG2() throws Exception { System.out.println("testValidateBoolean_WRONG2"); Generator instance = new Generator(); instance.tablePrefix = " "; instance.validateBoolean("tablePrefix", instance.tablePrefix); }
protected void validateBoolean(String name, String value) throws MojoExecutionException { if (!"true".equalsIgnoreCase(value) && !"false".equalsIgnoreCase(value)) { throw new MojoExecutionException("EasyDao engine configuration exception: wrong " + name + " . Valid value is true or false."); } }
Generator extends AbstractMojo { protected void validateBoolean(String name, String value) throws MojoExecutionException { if (!"true".equalsIgnoreCase(value) && !"false".equalsIgnoreCase(value)) { throw new MojoExecutionException("EasyDao engine configuration exception: wrong " + name + " . Valid value is true or false."); } } }
Generator extends AbstractMojo { protected void validateBoolean(String name, String value) throws MojoExecutionException { if (!"true".equalsIgnoreCase(value) && !"false".equalsIgnoreCase(value)) { throw new MojoExecutionException("EasyDao engine configuration exception: wrong " + name + " . Valid value is true or false."); } }  }
Generator extends AbstractMojo { protected void validateBoolean(String name, String value) throws MojoExecutionException { if (!"true".equalsIgnoreCase(value) && !"false".equalsIgnoreCase(value)) { throw new MojoExecutionException("EasyDao engine configuration exception: wrong " + name + " . Valid value is true or false."); } }  void execute(); }
Generator extends AbstractMojo { protected void validateBoolean(String name, String value) throws MojoExecutionException { if (!"true".equalsIgnoreCase(value) && !"false".equalsIgnoreCase(value)) { throw new MojoExecutionException("EasyDao engine configuration exception: wrong " + name + " . Valid value is true or false."); } }  void execute();  }