public class VerifierToPropertiesFile extends VerifierToFile
Response.ContentType : application/xml Response.EntityBody : <?xml version="1.0"?><CUSTOMERList xmlns:xlink="http://www.w3.org/1999/xlink">\ <CUSTOMER xlink:href="http://www.thomas-bayer.com/sqlrest/CUSTOMER/0/">0</CUSTOMER>\ <CUSTOMER xlink:href="http://www.thomas-bayer.com/sqlrest/CUSTOMER/1/">1</CUSTOMER>\ </CUSTOMERList> Response.EntityLength : 0 Response.Headers : {Date=Mon, 12 Dec 2016 05:17:19 GMT, Content-Length=4762, Via=1.1 inetgw38 (squid), Connection=keep-alive, Content-Type=application/xml, X-Cache=MISS from inetgw38, Server=Apache-Coyote/1.1} Response.Request.Headers : Content-Type:application/octet-stream Accept:application/octet-streamThis class uses the Java SAX XML Reader to do the work.
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Properties |
properties |
actualContents, checkedFields, expectedContents, filename, ignoredFields, matchAllFields, matched, nonMatchedMessages, reader, valueCaseSensitive, valueContains
runtime
BOOL_MATCH_ALL_FIELDS, BOOL_VALUE_CASESENSITIVE, BOOL_VALUE_CONTAINS
Constructor and Description |
---|
VerifierToPropertiesFile(RuntimeDataInterface runtime,
java.lang.String filename) |
Modifier and Type | Method and Description |
---|---|
void |
beforeCheck(Persistable persistable,
boolean... conditions)
Get some variables prepared for verification.
Parse the optional parameters It is expected that subclass should override this method to provide values to VerifierToFile.expectedContents and VerifierToFile.actualContents , such as: |
(package private) void |
debug(java.lang.String msg) |
afterCheck, check, equals, getType, isIgnoredFiled, match, verify
validate
public VerifierToPropertiesFile(RuntimeDataInterface runtime, java.lang.String filename)
runtime
- filename
- public void beforeCheck(Persistable persistable, boolean... conditions) throws SAFSException, java.io.IOException
VerifierToFile
VerifierToFile.expectedContents
and VerifierToFile.actualContents
, such as:
public void beforeCheck(Persistable persistable, boolean... conditions) throws SAFSException, IOException{
super.beforeCheck(persistable, conditions);
//Fill in Map 'actualContents'
//Fill in Map 'expectedContents'
}
beforeCheck
in class VerifierToFile
SAFSException
java.io.IOException
void debug(java.lang.String msg)
Copyright © SAS Institute. All Rights Reserved.