changeset 631:db2594ce845a

minor
author Devel 1
date Fri, 27 Oct 2017 16:25:19 +0200
parents a31b75b6d5e2
children 860c69eeaa6e
files stress-tester-benchmark/src/main/java/com/passus/st/avro/TestMetric.java stress-tester-reporter/src/test/java/com/passus/st/reporter/server/TestMetric.java stress-tester/src/main/java/com/passus/st/emitter/EmitterMetric.java stress-tester/src/test/java/com/passus/st/client/http/filter/HttpSequenceFilterTest.java stress-tester/src/test/java/com/passus/st/metric/MetricsBatchTimeWindowTest.java
diffstat 5 files changed, 1 insertions(+), 34 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester-benchmark/src/main/java/com/passus/st/avro/TestMetric.java	Fri Oct 27 15:29:48 2017 +0200
+++ b/stress-tester-benchmark/src/main/java/com/passus/st/avro/TestMetric.java	Fri Oct 27 16:25:19 2017 +0200
@@ -40,12 +40,6 @@
     }
 
     @Override
-    public Class getAttributeClass(String name) {
-        Serializable value = attributes.get(name);
-        return value.getClass();
-    }
-
-    @Override
     public boolean hasAttribute(String name) {
         return attributes.containsKey(name);
     }
--- a/stress-tester-reporter/src/test/java/com/passus/st/reporter/server/TestMetric.java	Fri Oct 27 15:29:48 2017 +0200
+++ b/stress-tester-reporter/src/test/java/com/passus/st/reporter/server/TestMetric.java	Fri Oct 27 16:25:19 2017 +0200
@@ -40,12 +40,6 @@
     }
 
     @Override
-    public Class getAttributeClass(String name) {
-        Serializable value = attributes.get(name);
-        return value.getClass();
-    }
-
-    @Override
     public boolean hasAttribute(String name) {
         return attributes.containsKey(name);
     }
--- a/stress-tester/src/main/java/com/passus/st/emitter/EmitterMetric.java	Fri Oct 27 15:29:48 2017 +0200
+++ b/stress-tester/src/main/java/com/passus/st/emitter/EmitterMetric.java	Fri Oct 27 16:25:19 2017 +0200
@@ -156,16 +156,6 @@
     }
 
     @Override
-    public Class getAttributeClass(String name) {
-        Serializable value = getAttributeValue(name);
-        if (value == null) {
-            return null;
-        }
-
-        return value.getClass();
-    }
-
-    @Override
     public boolean hasAttribute(String name) {
         return attrs.containsKey(name);
     }
--- a/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpSequenceFilterTest.java	Fri Oct 27 15:29:48 2017 +0200
+++ b/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpSequenceFilterTest.java	Fri Oct 27 16:25:19 2017 +0200
@@ -131,13 +131,7 @@
         ComparisonPredicate sp1 = (ComparisonPredicate) p0.getSubPredicates().get(1);
         assertEquals(ComparisonOperator.NOT_EQUAL, sp1.getOperator());
 
-        ValueExtractor fieldExtractor = sp1.getFieldExtractor();
-        if (fieldExtractor instanceof BeanValueExtractor) {
-            BeanValueExtractor bve = (BeanValueExtractor) fieldExtractor;
-            assertEquals("resp.getCookie('id')", bve.getFieldName());
-        } else {
-            assertTrue(fieldExtractor instanceof HttpMessageHeaderValueExtractor);
-        }
+        assertEquals("resp.getCookie('id')", sp1.getFieldName());
 
         UnmutableValueExtractor uve = (UnmutableValueExtractor) sp1.getPattern();
         assertEquals(123, uve.extract(null));
--- a/stress-tester/src/test/java/com/passus/st/metric/MetricsBatchTimeWindowTest.java	Fri Oct 27 15:29:48 2017 +0200
+++ b/stress-tester/src/test/java/com/passus/st/metric/MetricsBatchTimeWindowTest.java	Fri Oct 27 16:25:19 2017 +0200
@@ -91,11 +91,6 @@
         }
 
         @Override
-        public Class getAttributeClass(String name) {
-            throw new UnsupportedOperationException("Not supported yet.");
-        }
-
-        @Override
         public boolean hasAttribute(String name) {
             throw new UnsupportedOperationException("Not supported yet.");
         }