org.w3c.mwi.mobileok.basic
Class AbstractTestImplementation
java.lang.Object
  
org.w3c.mwi.mobileok.basic.AbstractTestImplementation
- All Implemented Interfaces: 
 - TestImplementation
 
- Direct Known Subclasses: 
 - AbstractCSSTestImplementation, AbstractXSLTTestImplementation
 
abstract class AbstractTestImplementation
- extends java.lang.Object
- implements TestImplementation
  
Abstract implementation of the TestImplementation interface for
 test implementations that return the outcome of the test as a DOM tree.
 
 
The class is typically useful for tests that apply an XSL stylesheet
 to the intermediary moki representation. All the mobileOK tests actually
 extend the AbstractTestImplementation class.
 
 
 The DOM tree returned by the test should be a test fragment
 of the final report that will be returned by the mobileOK Checker.
 Example of a test fragment represented in XML:
 
<test name="MY_TEST" outcome="FAIL">
 
 <result name="MY_TEST-1" outcome="WARN">
 
  <info>WARN: Informative warning</info>
 
 </result>
 
 <result name="MY_TEST-2" outcome="FAIL">
 
  <info>FAIL: Real failure</info>
 
  <position tidied="false" type="GENERAL" url="http://example.org/resource"/>
 
 </result>
 
</test>
 
- Version:
 
  - $Revision: 1.1 $
 
- Author:
 
  - The W3C mobileOK Checker Task Force
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
 
AbstractTestImplementation
AbstractTestImplementation()
convertToTestResult
protected TestResult convertToTestResult(org.w3c.dom.Node resultRoot)
                                  throws TestException
- Converts the outcome of a test in a DOM node format to a
 
TestResult outcome.
 
- Parameters:
 resultRoot - the outcome of the test as a DOM Node.
- Returns:
 - the outcome of the test as a 
TestResult.
 - Throws:
 TestException - the format of the result node is not valid.
 
 
toString
public java.lang.String toString()
- Overrides:
 toString in class java.lang.Object