changeset 782:2ad0c7dbe571

bugfixes
author Devel 1
date Tue, 19 Dec 2017 15:43:21 +0100
parents 80b01b797330
children a4b90beadbe2
files stress-tester/src/main/java/com/passus/st/CliHelper.java stress-tester/src/main/java/com/passus/st/client/http/filter/HttpFiltersConfigurator.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/CliHelper.java	Tue Dec 19 14:19:04 2017 +0100
+++ b/stress-tester/src/main/java/com/passus/st/CliHelper.java	Tue Dec 19 15:43:21 2017 +0100
@@ -2,6 +2,7 @@
 
 import com.passus.commons.Assert;
 import com.passus.config.Configuration;
+import com.passus.config.ConfigurationContextImpl;
 import com.passus.config.YamlConfigurationReader;
 import com.passus.config.validation.Errors;
 import static com.passus.config.validation.ErrorsUtils.objectErrorToString;
@@ -161,7 +162,7 @@
             Configuration cfg = YamlConfigurationReader.readFromFile(file);
             HttpFiltersConfigurator configurator = new HttpFiltersConfigurator();
             Errors errors = new Errors();
-            configurator.configure(cfg, errors, null);
+            configurator.configure(cfg, errors, new ConfigurationContextImpl());
             if (errors.getErrorCount() != 0) {
                 printError("Error in file '" + file.getAbsolutePath() + "'.", false);
                 for (ObjectError error : errors.getAllErrors()) {
--- a/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpFiltersConfigurator.java	Tue Dec 19 14:19:04 2017 +0100
+++ b/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpFiltersConfigurator.java	Tue Dec 19 15:43:21 2017 +0100
@@ -78,7 +78,6 @@
     @Override
     public void configure(Configuration config, Errors errors, ConfigurationContext context) {
         List<HttpFilter> cfgFilters = getFilters(config, errors, context);
-        filters.clear();
         if (errors.getErrorCount() == 0) {
             filters = new ArrayList<>(cfgFilters);
         }