Package org.alfresco.utility.extension
Class ExtentionPointTestUtility
java.lang.Object
org.alfresco.utility.extension.ExtentionPointTestUtility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassertTestCaseExecutionStatus(InputStream inputExtension, String testCaseName) Asserts that actualValue and expectedValue are equals of a given testCase namevoidvalidateAgainstXSD(InputStream importFileXML) validate xml file against a standard schemaxmlToClass(InputStream importFileXML) convert XML data to a java content tree
-
Constructor Details
-
ExtentionPointTestUtility
public ExtentionPointTestUtility()
-
-
Method Details
-
xmlToClass
public ExtensionPointTestSuite xmlToClass(InputStream importFileXML) throws javax.xml.bind.JAXBException convert XML data to a java content tree- Parameters:
importFileXML-- Returns:
- Throws:
javax.xml.bind.JAXBException
-
validateAgainstXSD
public void validateAgainstXSD(InputStream importFileXML) throws IOException, XMLToModelUnmarshalException validate xml file against a standard schema- Parameters:
importFileXML-- Throws:
IOExceptionXMLToModelUnmarshalException
-
assertTestCaseExecutionStatus
public void assertTestCaseExecutionStatus(InputStream inputExtension, String testCaseName) throws javax.xml.bind.JAXBException, TestCaseNotFoundException Asserts that actualValue and expectedValue are equals of a given testCase name- Parameters:
inputExtension-testCaseName-- Throws:
javax.xml.bind.JAXBExceptionTestCaseNotFoundException
-