jsystem.extensions.analyzers.text
Class CountText

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

public class CountText
extends AnalyzeTextParameter

Analyzer that count text in the input string and compare it with the expected result. Deviation is supported as well.


Field Summary
protected  int deviation
           
protected  int expectedCount
           
 
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
CountText(String toFind, int expectedCount)
           
CountText(String toFind, int count, int deviation)
           
 
Method Summary
 void analyze()
          The analyze process.
 
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
 

Field Detail

expectedCount

protected int expectedCount

deviation

protected int deviation
Constructor Detail

CountText

public CountText(String toFind,
                 int expectedCount)

CountText

public CountText(String toFind,
                 int count,
                 int deviation)
Method Detail

analyze

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