changeset 576:27c9d6ce06bb

minor
author Devel 2
date Fri, 29 Sep 2017 10:40:17 +0200
parents 5076b7ad9328
children 08e9d364c9d2
files stress-tester/src/main/java/com/passus/st/client/credentials/UsernamePasswordCredentialsProvider.java stress-tester/src/main/java/com/passus/st/client/http/filter/HttpMessagePredicate.java
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/client/credentials/UsernamePasswordCredentialsProvider.java	Wed Sep 27 16:56:44 2017 +0200
+++ b/stress-tester/src/main/java/com/passus/st/client/credentials/UsernamePasswordCredentialsProvider.java	Fri Sep 29 10:40:17 2017 +0200
@@ -22,6 +22,14 @@
 
     private String password;
 
+    public UsernamePasswordCredentialsProvider() {
+    }
+
+    public UsernamePasswordCredentialsProvider(String username, String password) {
+        this.username = username;
+        this.password = password;
+    }
+
     public String getUsername() {
         return username;
     }
--- a/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpMessagePredicate.java	Wed Sep 27 16:56:44 2017 +0200
+++ b/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpMessagePredicate.java	Fri Sep 29 10:40:17 2017 +0200
@@ -24,6 +24,10 @@
         this.predicate = predicate;
     }
 
+    public Predicate getPredicate() {
+        return predicate;
+    }
+
     public boolean test(HttpRequest req, HttpResponse resp, HttpFlowContext context) {
         return test(new HttpMessageWrapper(req, resp, context));
     }