Class TestConfigurator


  • public final class TestConfigurator
    extends UpdateConfig.Configurator<TestConfigurator>
    Utility to simplify testing updates: it could search file on fs, in classpath or as url. Executes updater in dry run mode (to avoid modifications). Temp file is used as original config (with copied content), so nothing could be changed in any case.

    By default, prints update report and complete merged file (for visual validation).

    Target use case: keep old config somewhere in test classpath and compare it with the newer config version to make sure production migration will not fail.

    Since:
    06.10.2021
    See Also:
    YamlUpdater.createTest(String, String)
    • Constructor Detail

      • TestConfigurator

        public TestConfigurator​(java.lang.String config,
                                java.lang.String update)