writer.writeQcML(null);
}
@Test
public void writeQcML_invalidVersion() {
QcML qcml = new QcML();
qcml.setFileName("Invalid_version.qcML");
String version = "My.version.number";
qcml.setVersion(version);
Cv cv = new Cv("name", "uri", "cv");
qcml.addCv(cv);
QualityAssessment run = new QualityAssessment("run");
QualityParameter param = new QualityParameter("name", cv, "param");
param.setAccession("accession");
run.addQualityParameter(param);
qcml.addRunQuality(run);
assertEquals(version, qcml.getVersion());
// warning should be logged
writer.writeQcML(qcml);
assertEquals(QcMLFileWriter.QCML_VERSION, qcml.getVersion());
}