jsystem.extensions.analyzers.text
Class CheckCounter

java.lang.Object
  extended byjsystem.framework.analyzer.AnalyzerParameterImpl
      extended byjsystem.extensions.analyzers.text.AnalyzeTextParameter
          extended byjsystem.extensions.analyzers.text.CheckCounter
All Implemented Interfaces:
AnalyzerParameter

public class CheckCounter
extends AnalyzeTextParameter

Analyzer for int text counters. For example: In packets : 500 Out packets: 100 CRC errors : 0 The abouve text can be analyze the counter will be 'In packets', The expected value will be 500. This class support deviation as well.


Field Summary
 
Fields inherited from class jsystem.extensions.analyzers.text.AnalyzeTextParameter
testText, toFind
 
Fields inherited from class jsystem.framework.analyzer.AnalyzerParameterImpl
analyzer, message, status, testAgainst, throwable, title
 
Constructor Summary
CheckCounter(String counter, int expectedValue)
           
CheckCounter(String counter, int expectedValue, int deviation)
           
 
Method Summary
 void analyze()
          The analyze process.
 int getCounter()
           
 
Methods inherited from class jsystem.extensions.analyzers.text.AnalyzeTextParameter
setTestAgainst
 
Methods inherited from class jsystem.framework.analyzer.AnalyzerParameterImpl
getMessage, getStatus, getThrowable, getTitle, setAnalyzer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckCounter

public CheckCounter(String counter,
                    int expectedValue,
                    int deviation)

CheckCounter

public CheckCounter(String counter,
                    int expectedValue)
Method Detail

analyze

public void analyze()
Description copied from interface: AnalyzerParameter
The analyze process.


getCounter

public int getCounter()