changeset 617:f8118e01a91a

cleanup
author Devel 1
date Tue, 10 Oct 2017 14:02:15 +0200
parents 962b0184d05e
children 28da18935579
files stress-tester/src/main/java/com/passus/st/client/http/filter/HttpFilterMessagePredicateTransformer.java
diffstat 1 files changed, 0 insertions(+), 40 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpFilterMessagePredicateTransformer.java	Thu Oct 12 12:15:38 2017 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,40 +0,0 @@
-package com.passus.st.client.http.filter;
-
-import com.passus.commons.ConversionException;
-import com.passus.config.CNode;
-import com.passus.config.CValueNode;
-import com.passus.config.NodeConversionException;
-import com.passus.config.schema.NodeTransformer;
-import com.passus.config.validation.Errors;
-import static com.passus.config.validation.ValidationDefaultMessages.GENERAL_CONVERSION_ERROR;
-import com.passus.filter.config.PredicateNodeTransformer;
-import java.util.function.Predicate;
-
-/**
- *
- * @author Mirosław Hawrot
- */
-public class HttpFilterMessagePredicateTransformer implements NodeTransformer<CValueNode> {
-
-    private final PredicateNodeTransformer nodeTransformer = new PredicateNodeTransformer();
-
-    @Override
-    public CValueNode transform(CNode node, Errors errors) {
-        try {
-            Predicate predicate = nodeTransformer.transform(node);
-            return new CValueNode(new HttpMessagePredicate(predicate));
-        } catch (NodeConversionException ex) {
-            errors.reject(node, ex.getMessage());
-        } catch (ConversionException ex) {
-            errors.reject(node, GENERAL_CONVERSION_ERROR);
-        }
-
-        return null;
-    }
-
-    @Override
-    public CValueNode reverseTransform(CNode node, Errors errors) {
-        throw new UnsupportedOperationException("Not supported yet.");
-    }
-
-}