ValidationConfig { public static ValidationConfig load() { return load(PlatformConfig.defaultConfig()); } ValidationConfig(double threshold, boolean verbose, String loadFlowName,
                            Class<? extends TableFormatterFactory> tableFormatterFactory, double epsilonX,
                            boolean applyReactanceCorrection, ValidationOutputWriter validationOutputWriter, LoadFlowParameters loadFlowParameters,
                            boolean okMissingValues, boolean noRequirementIfReactiveBoundInversion, boolean compareResults, boolean checkMainComponentOnly,
                            boolean noRequirementIfSetpointOutsidePowerBounds); static ValidationConfig load(); static ValidationConfig load(PlatformConfig platformConfig); double getThreshold(); boolean isVerbose(); Optional<String> getLoadFlowName(); Class<? extends TableFormatterFactory> getTableFormatterFactory(); double getEpsilonX(); ValidationOutputWriter getValidationOutputWriter(); boolean applyReactanceCorrection(); LoadFlowParameters getLoadFlowParameters(); boolean areOkMissingValues(); boolean isNoRequirementIfReactiveBoundInversion(); boolean isCompareResults(); boolean isCheckMainComponentOnly(); boolean isNoRequirementIfSetpointOutsidePowerBounds(); void setThreshold(double threshold); void setVerbose(boolean verbose); void setLoadFlowName(String loadFlowName); void setTableFormatterFactory(Class<? extends TableFormatterFactory> tableFormatterFactory); void setEpsilonX(double epsilonX); void setApplyReactanceCorrection(boolean applyReactanceCorrection); void setValidationOutputWriter(ValidationOutputWriter validationOutputWriter); void setLoadFlowParameters(LoadFlowParameters loadFlowParameters); void setOkMissingValues(boolean okMissingValues); void setNoRequirementIfReactiveBoundInversion(boolean noRequirementIfReactiveBoundInversion); void setCompareResults(boolean compareResults); void setCheckMainComponentOnly(boolean checkMainComponentOnly); void setNoRequirementIfSetpointOutsidePowerBounds(boolean noRequirementIfSetpointOutsidePowerBounds); @Override String toString(); static final double THRESHOLD_DEFAULT; static final boolean VERBOSE_DEFAULT; static final Class<? extends TableFormatterFactory> TABLE_FORMATTER_FACTORY_DEFAULT; static final double EPSILON_X_DEFAULT; static final boolean APPLY_REACTANCE_CORRECTION_DEFAULT; static final ValidationOutputWriter VALIDATION_OUTPUT_WRITER_DEFAULT; static final boolean OK_MISSING_VALUES_DEFAULT; static final boolean NO_REQUIREMENT_IF_REACTIVE_BOUND_INVERSION_DEFAULT; static final boolean COMPARE_RESULTS_DEFAULT; static final boolean CHECK_MAIN_COMPONENT_ONLY_DEFAULT; static final boolean NO_REQUIREMENT_IF_SETPOINT_OUTSIDE_POWERS_BOUNDS; }
@Test public void testNoConfig() { ValidationConfig config = ValidationConfig.load(platformConfig); checkValues(config, ValidationConfig.THRESHOLD_DEFAULT, ValidationConfig.VERBOSE_DEFAULT, loadFlowName, ValidationConfig.TABLE_FORMATTER_FACTORY_DEFAULT, ValidationConfig.EPSILON_X_DEFAULT, ValidationConfig.APPLY_REACTANCE_CORRECTION_DEFAULT, ValidationConfig.VALIDATION_OUTPUT_WRITER_DEFAULT, ValidationConfig.OK_MISSING_VALUES_DEFAULT, ValidationConfig.NO_REQUIREMENT_IF_REACTIVE_BOUND_INVERSION_DEFAULT, ValidationConfig.COMPARE_RESULTS_DEFAULT, ValidationConfig.CHECK_MAIN_COMPONENT_ONLY_DEFAULT, ValidationConfig.NO_REQUIREMENT_IF_SETPOINT_OUTSIDE_POWERS_BOUNDS); }