@Test void validatorDoesNotExist() throws RedPenException { assertThrows(RedPenException.class, () -> { Configuration conf = Configuration.builder().addValidatorConfig(new ValidatorConfiguration("Foobar")).build(); ValidatorFactory.getInstance(conf.getValidatorConfigs().get(0), conf); }); }
public static Validator getInstance(String validatorName) throws RedPenException { Configuration conf = Configuration.builder().addValidatorConfig(new ValidatorConfiguration(validatorName)).build(); return getInstance(conf.getValidatorConfigs().get(0), conf); }
ValidatorFactory { public static Validator getInstance(String validatorName) throws RedPenException { Configuration conf = Configuration.builder().addValidatorConfig(new ValidatorConfiguration(validatorName)).build(); return getInstance(conf.getValidatorConfigs().get(0), conf); } }
ValidatorFactory { public static Validator getInstance(String validatorName) throws RedPenException { Configuration conf = Configuration.builder().addValidatorConfig(new ValidatorConfiguration(validatorName)).build(); return getInstance(conf.getValidatorConfigs().get(0), conf); }  }
ValidatorFactory { public static Validator getInstance(String validatorName) throws RedPenException { Configuration conf = Configuration.builder().addValidatorConfig(new ValidatorConfiguration(validatorName)).build(); return getInstance(conf.getValidatorConfigs().get(0), conf); }  static List<ValidatorConfiguration> getConfigurations(String lang); static Validator getInstance(String validatorName); static Validator getInstance(ValidatorConfiguration config, Configuration globalConfig); }
ValidatorFactory { public static Validator getInstance(String validatorName) throws RedPenException { Configuration conf = Configuration.builder().addValidatorConfig(new ValidatorConfiguration(validatorName)).build(); return getInstance(conf.getValidatorConfigs().get(0), conf); }  static List<ValidatorConfiguration> getConfigurations(String lang); static Validator getInstance(String validatorName); static Validator getInstance(ValidatorConfiguration config, Configuration globalConfig);  }