public class RegionValidator extends Object
| Constructor and Description |
|---|
RegionValidator(boolean regionExists,
boolean hasKeys,
boolean hasValues)
Constructor to create a RegionValidator
used internally by this class to create templates based
on expected values maps.
|
RegionValidator(Operation op)
noArg constructor
|
RegionValidator(Operation op,
String regionName,
boolean regionExists,
boolean hasKeys,
boolean hasValues)
Constructor to create a RegionValidator
|
| Modifier and Type | Method and Description |
|---|---|
void |
compare(RegionValidator vc)
Compare two validator controls, throw an exception if not a match
|
static RegionValidator |
getActual(Operation op) |
static RegionValidator |
getExpected(Operation op,
boolean isVisible) |
String |
getRegionName() |
void |
setRegionName(String regionName) |
String |
toString()
Return a string description of the RegionValidator
|
public RegionValidator(Operation op)
public RegionValidator(boolean regionExists,
boolean hasKeys,
boolean hasValues)
regionExists - boolean (true => expect region to exist)hasKeys - boolean (true => expect region.containsKey() == true)hasValues - boolean (true => expect region.containsValueForKey() == true)public RegionValidator(Operation op, String regionName, boolean regionExists, boolean hasKeys, boolean hasValues)
op - - The Operation being validatedregionName - The name of the region involved in the operation.regionExists - boolean (true => expect region.containsKey() == true)hasKeys - booealn (true => expect region to contain keyset)hasValue - boolean (true => expect keys in region to return true for .containsValueForKey())public String getRegionName()
public void setRegionName(String regionName)
public static RegionValidator getExpected(Operation op, boolean isVisible)
public static RegionValidator getActual(Operation op)
public void compare(RegionValidator vc)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.