org.eclipse.cdt.debug.testplugin.util
Class ExpectedStrings

java.lang.Object
  extended by org.eclipse.cdt.debug.testplugin.util.ExpectedStrings

public class ExpectedStrings
extends java.lang.Object

Author:
Peter Graves This utility class maintains a list of strings, and as a tests finds strings in a structure/list, it will maintain a list of unfound/extra strings.

Field Summary
 java.lang.String[] expStrings
           
 
Constructor Summary
ExpectedStrings()
          Constructor for ExpectedStrings.
ExpectedStrings(java.lang.String[] values)
          Constructor for ExpectedStrings that accepts a list of strings that we expect to get.
 
Method Summary
 int foundString(java.lang.String current)
           
 java.lang.String getExtraString()
           
 java.lang.String getMissingString()
           
 int getNum(java.lang.String name)
           
 boolean gotAll()
           
 boolean gotExtra()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

expStrings

public java.lang.String[] expStrings
Constructor Detail

ExpectedStrings

public ExpectedStrings()
Constructor for ExpectedStrings.


ExpectedStrings

public ExpectedStrings(java.lang.String[] values)
Constructor for ExpectedStrings that accepts a list of strings that we expect to get.

Method Detail

foundString

public int foundString(java.lang.String current)

getNum

public int getNum(java.lang.String name)

gotAll

public boolean gotAll()

gotExtra

public boolean gotExtra()

getMissingString

public java.lang.String getMissingString()

getExtraString

public java.lang.String getExtraString()