" <attr name='SUBNET_ID'>X25</attr>\n" +
" </row>\n" +
"</sql>\n";
SqlInfoParser parser = new SqlInfoParser();
parser.init(this.info);
String xmlFileName = System.getProperty("xmlFileName",null);
InputStream is = null;
if (xmlFileName == null) {
is = new ByteArrayInputStream(xml.getBytes());
}
else {
// String isChar = System.getProperty("isChar", "false");
// if ("true".equals(isChar))
// is = new InputSource(new FileReader(xmlFileName));
// else
// is = new InputSource(new FileInputStream(xmlFileName));
is = new FileInputStream(xmlFileName);
}
String charSet = System.getProperty("charSet", null);
SqlInfo record = parser.parse(is, charSet);
SqlDescription description = record.getDescription();
assertNotNull("the description shall not be null", description);
assertNotNull("the identity shall not be null", description.getIdentity());
assertNotNull("the command shall not be null", description.getCommand());