Methods Summary |
---|
protected void | setUp()
super.setUp();
try {
factory = new DOMDocumentBuilderFactory(DOMDocumentBuilderFactory
.getConfiguration1());
builder = factory.getBuilder();
} catch (Exception e) {
fail("Unexpected exception" + e.getMessage());
}
|
protected void | tearDown()
factory = null;
builder = null;
super.tearDown();
|
public void | testIsSupported1()Runs the test case.
Document doc;
Node rootNode;
boolean state;
doc = (Document) load("staff", builder);
rootNode = doc.getDocumentElement();
state = rootNode.isSupported("XXX", "1.0");
assertFalse("throw_False", state);
|
public void | testIsSupported10()
Document doc;
Node rootNode;
boolean state;
doc = (Document) load("staff", builder);
rootNode = doc.getDocumentElement();
state = rootNode.isSupported("CORE", "2.0");
assertTrue("throw_True", state);
|
public void | testIsSupported11()
Document doc;
Node rootNode;
boolean state;
doc = (Document) load("staff", builder);
rootNode = doc.getDocumentElement();
state = rootNode.isSupported("XML", "2.0");
assertTrue("throw_True", state);
|
public void | testIsSupported12()
List<String> features = new ArrayList<String>();
features.add("Core");
features.add("XML");
features.add("HTML");
features.add("Views");
features.add("StyleSheets");
features.add("CSS");
features.add("CSS2");
features.add("Events");
features.add("UIEvents");
features.add("MouseEvents");
features.add("MutationEvents");
features.add("HTMLEvents");
features.add("Range");
features.add("Traversal");
features.add("bogus.bogus.bogus");
Document doc;
Node rootNode;
String featureElement;
boolean state;
doc = (Document) load("staff", builder);
rootNode = doc.getDocumentElement();
state = rootNode.isSupported("Core", "2.0");
assertTrue("Core2", state);
for (int indexN10078 = 0; indexN10078 < features.size(); indexN10078++) {
featureElement = (String) features.get(indexN10078);
state = rootNode.isSupported(featureElement, "1.0");
}
for (int indexN10083 = 0; indexN10083 < features.size(); indexN10083++) {
featureElement = (String) features.get(indexN10083);
state = rootNode.isSupported(featureElement, "2.0");
}
|
public void | testIsSupported13()
Document doc;
Node rootNode;
boolean state;
doc = (Document) load("staff", builder);
rootNode = doc.getDocumentElement();
state = rootNode.isSupported("Core", "");
assertTrue("Core", state);
|
public void | testIsSupported14()
Document doc;
Node rootNode;
boolean state;
String nullString = null;
doc = (Document) load("staff", builder);
rootNode = doc.getDocumentElement();
state = rootNode.isSupported("Core", nullString);
assertTrue("Core", state);
|
public void | testIsSupported2()
Document doc;
Node rootNode;
boolean state;
doc = (Document) load("staff", builder);
rootNode = doc.getDocumentElement();
state = rootNode.isSupported("XML", "9.0");
assertFalse("throw_False", state);
|
public void | testIsSupported4()
Document doc;
Node rootNode;
boolean state;
doc = (Document) load("staff", builder);
rootNode = doc.getDocumentElement();
state = rootNode.isSupported("xml", "1.0");
assertTrue("throw_True", state);
|
public void | testIsSupported5()
Document doc;
Node rootNode;
boolean state;
doc = (Document) load("staff", builder);
rootNode = doc.getDocumentElement();
state = rootNode.isSupported("core", "2.0");
assertTrue("throw_True", state);
|
public void | testIsSupported6()
Document doc;
Node rootNode;
boolean state;
doc = (Document) load("staff", builder);
rootNode = doc.getDocumentElement();
state = rootNode.isSupported("xml", "2.0");
assertTrue("throw_True", state);
|
public void | testIsSupported7()
Document doc;
Node rootNode;
boolean state;
doc = (Document) load("staff", builder);
rootNode = doc.getDocumentElement();
state = rootNode.isSupported("XML", "");
assertTrue("throw_True", state);
|
public void | testIsSupported9()
Document doc;
Node rootNode;
boolean state;
doc = (Document) load("staff", builder);
rootNode = doc.getDocumentElement();
state = rootNode.isSupported("XML", "1.0");
assertTrue("throw_True", state);
|