changeset 868:c8844cd52ad4

NodeTransformer interface changed
author Devel 1
date Thu, 25 Jan 2018 08:54:52 +0100
parents af16052b659b
children 6cba3257c006
files stress-tester/src/main/java/com/passus/st/client/credentials/MultiCredentialsProviderTransformer.java stress-tester/src/main/java/com/passus/st/client/http/filter/HttpCsrfFilterExtractorTransformer.java stress-tester/src/main/java/com/passus/st/client/http/filter/HttpCsrfFilterInjectorTransformer.java stress-tester/src/main/java/com/passus/st/client/http/filter/HttpMarkFilter.java stress-tester/src/main/java/com/passus/st/client/http/filter/HttpScopeModificationFilterTransformer.java stress-tester/src/main/java/com/passus/st/client/http/filter/HttpSequenceFilter.java
diffstat 6 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/client/credentials/MultiCredentialsProviderTransformer.java	Wed Jan 24 15:34:33 2018 +0100
+++ b/stress-tester/src/main/java/com/passus/st/client/credentials/MultiCredentialsProviderTransformer.java	Thu Jan 25 08:54:52 2018 +0100
@@ -61,8 +61,8 @@
     }
 
     @Override
-    public CValueNode reverseTransform(CNode node, Errors errors, ConfigurationContext context) {
-        throw new UnsupportedOperationException("Not supported yet.");
+    public CNode reverseTransform(CValueNode node, Errors errors, ConfigurationContext context) {
+        throw new UnsupportedOperationException("Impossible."); // Provider
     }
 
 }
--- a/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpCsrfFilterExtractorTransformer.java	Wed Jan 24 15:34:33 2018 +0100
+++ b/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpCsrfFilterExtractorTransformer.java	Thu Jan 25 08:54:52 2018 +0100
@@ -22,7 +22,7 @@
  */
 class HttpCsrfFilterExtractorTransformer implements NodeTransformer<CValueNode> {
 
-    private Extractor createNameExtractor(CTupleNode tuple, Errors errors, Class<? extends Extractor> clazz) {
+    private Extractor createExtractor(CTupleNode tuple, Errors errors, Class<? extends Extractor> clazz) {
         if (validateType(tuple.getNode(), NodeType.VALUE, errors)) {
             CValueNode valNode = (CValueNode) tuple.getNode();
             try {
@@ -57,10 +57,10 @@
                 Extractor extractor = null;
                 switch (opName.toLowerCase()) {
                     case "cookie":
-                        extractor = createNameExtractor(tuple, errors, CookieExtractor.class);
+                        extractor = createExtractor(tuple, errors, CookieExtractor.class);
                         break;
                     case "header":
-                        extractor = createNameExtractor(tuple, errors, HeaderExtractor.class);
+                        extractor = createExtractor(tuple, errors, HeaderExtractor.class);
                         break;
                     default:
                         throw new IllegalStateException("Not supported extractor '" + opName + "'.");
@@ -78,7 +78,7 @@
     }
 
     @Override
-    public CValueNode reverseTransform(CNode node, Errors errors, ConfigurationContext context) {
+    public CNode reverseTransform(CValueNode node, Errors errors, ConfigurationContext context) {
         throw new UnsupportedOperationException("Not supported yet.");
     }
 
--- a/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpCsrfFilterInjectorTransformer.java	Wed Jan 24 15:34:33 2018 +0100
+++ b/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpCsrfFilterInjectorTransformer.java	Thu Jan 25 08:54:52 2018 +0100
@@ -22,7 +22,7 @@
  */
 class HttpCsrfFilterInjectorTransformer implements NodeTransformer<CValueNode> {
 
-    private Injector createNameExtractor(CTupleNode tuple, Errors errors, Class<? extends Injector> clazz) {
+    private Injector createInjector(CTupleNode tuple, Errors errors, Class<? extends Injector> clazz) {
         if (validateType(tuple.getNode(), NodeType.VALUE, errors)) {
             CValueNode valNode = (CValueNode) tuple.getNode();
             try {
@@ -56,10 +56,10 @@
                 Injector injector = null;
                 switch (opName.toLowerCase()) {
                     case "header":
-                        injector = createNameExtractor(tuple, errors, HeaderInjector.class);
+                        injector = createInjector(tuple, errors, HeaderInjector.class);
                         break;
                     case "cookie":
-                        injector = createNameExtractor(tuple, errors, CookieInjector.class);
+                        injector = createInjector(tuple, errors, CookieInjector.class);
                         break;
                     default:
                         throw new IllegalStateException("Not supported injector '" + opName + "'.");
@@ -77,7 +77,7 @@
     }
 
     @Override
-    public CValueNode reverseTransform(CNode node, Errors errors, ConfigurationContext context) {
+    public CNode reverseTransform(CValueNode node, Errors errors, ConfigurationContext context) {
         throw new UnsupportedOperationException("Not supported yet.");
     }
 
--- a/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpMarkFilter.java	Wed Jan 24 15:34:33 2018 +0100
+++ b/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpMarkFilter.java	Thu Jan 25 08:54:52 2018 +0100
@@ -225,7 +225,7 @@
 
         @Override
         public CNode reverseTransform(CNode node, Errors errors, ConfigurationContext context) {
-            throw new UnsupportedOperationException("Not supported yet.");
+            throw new UnsupportedOperationException("Impossible."); // Predicate
         }
 
     }
--- a/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpScopeModificationFilterTransformer.java	Wed Jan 24 15:34:33 2018 +0100
+++ b/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpScopeModificationFilterTransformer.java	Thu Jan 25 08:54:52 2018 +0100
@@ -160,8 +160,8 @@
     }
 
     @Override
-    public CValueNode reverseTransform(CNode node, Errors errors, ConfigurationContext context) {
-        throw new UnsupportedOperationException("Not supported yet.");
+    public CNode reverseTransform(CValueNode node, Errors errors, ConfigurationContext context) {
+        throw new UnsupportedOperationException("Impossible."); // ValueExtractor
     }
 
 }
--- a/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpSequenceFilter.java	Wed Jan 24 15:34:33 2018 +0100
+++ b/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpSequenceFilter.java	Thu Jan 25 08:54:52 2018 +0100
@@ -486,7 +486,7 @@
 
         @Override
         public CNode reverseTransform(CNode node, Errors errors, ConfigurationContext context) {
-            throw new UnsupportedOperationException("Not supported yet.");
+            throw new UnsupportedOperationException("Impossible.");
         }
 
     }