@Test public void shouldComplainAboutUnconfiguredModelPackageNames() { Options options = new Options(); try { options.validate(); fail("Empty model packages configuration not allowed"); } catch (Options.InvalidConfigurationException e) { assertThat(e.getMessage(), is("Model package names must not be empty.")); } }
public void validate() { if (this.getModelPackages().isEmpty()) { throw new InvalidConfigurationException("Model package names must not be empty."); } }
Options { public void validate() { if (this.getModelPackages().isEmpty()) { throw new InvalidConfigurationException("Model package names must not be empty."); } } }
Options { public void validate() { if (this.getModelPackages().isEmpty()) { throw new InvalidConfigurationException("Model package names must not be empty."); } }  }
Options { public void validate() { if (this.getModelPackages().isEmpty()) { throw new InvalidConfigurationException("Model package names must not be empty."); } }  void validate(); }
Options { public void validate() { if (this.getModelPackages().isEmpty()) { throw new InvalidConfigurationException("Model package names must not be empty."); } }  void validate(); static final String CONFIG_FILE_NAME; }