/** * Overridden to initialize the list. * * @see AbstractTest#setUp() */ @Override @BeforeClass protected void setUp() throws Exception { super.setUp(); /** The target schema file */ // SCHEMA_2010_06 = this.getClass().getResourceAsStream("/2010-06/V1/ome.xsd"); // components/specification/Released-Schema/2003-FC/V2/ schemaArray = new StreamSource[6]; schemaArray[0] = new StreamSource( this.getClass().getResourceAsStream("/Released-Schema/2010-06/V1/ome.xsd")); schemaArray[1] = new StreamSource( this.getClass().getResourceAsStream("/Released-Schema/2010-06/V1/SPW.xsd")); schemaArray[2] = new StreamSource(this.getClass().getResourceAsStream("/Released-Schema/2010-06/V1/SA.xsd")); schemaArray[3] = new StreamSource( this.getClass().getResourceAsStream("/Released-Schema/2010-06/V1/ROI.xsd")); schemaArray[4] = new StreamSource( this.getClass().getResourceAsStream("/Released-Schema/2010-06/V1/BinaryFile.xsd")); schemaArray[5] = new StreamSource( this.getClass().getResourceAsStream("/Released-Schema/2010-06/V1/OMERO.xsd")); /** The transform file */ STYLESHEET = this.getClass().getResourceAsStream("/Xslt/2011-06-to-2010-06.xsl"); // components/specification/Xslt/ files = new ArrayList<File>(); }
/** * Overridden to initialize the list. * * @see AbstractTest#setUp() */ @Override @BeforeClass protected void setUp() throws Exception { super.setUp(); /** The target schema file */ schemaArray = new StreamSource[1]; schemaArray[0] = new StreamSource(this.getClass().getResourceAsStream("/released-schema/2003-FC/ome.xsd")); // components/specification/released-schema/2003-FC/ /** The transforms */ STYLESHEET_A = this.getClass().getResourceAsStream("/transforms/2012-06-to-2011-06.xsl"); STYLESHEET_B = this.getClass().getResourceAsStream("/transforms/2011-06-to-2010-06.xsl"); STYLESHEET_C = this.getClass().getResourceAsStream("/transforms/2010-06-to-2003-FC.xsl"); // components/specification/transforms/ files = new ArrayList<File>(); }