/** * Eventually, this method will call {@link ReportDesignHandle#serialize(java.io.OutputStream)}to * save the output file of some unit test. * * @param moduleHandle the module to save, either a report design or a library * @throws IOException if error occurs while saving the file. */ protected void save(ModuleHandle moduleHandle) throws IOException { os = new ByteArrayOutputStream(); if (moduleHandle != null) moduleHandle.serialize(os); os.close(); }