use of org.nextprot.api.core.export.EntryPartWriterXLS in project nextprot-api by calipho-sib.
the class EntryPartWriterXLSTest method getExpressionProfileOutputString.
@Test
public void getExpressionProfileOutputString() throws Exception {
File tempFile = testFolder.newFile("out.xls");
OutputStream fos = new FileOutputStream(tempFile);
String subpart = "expression-profile";
Entry entry = entryBuilderService.build(EntryConfig.newConfig("NX_P01308").with(subpart));
EntryPartWriterXLS writer = new EntryPartWriterXLS(EntryPartExporterImpl.fromSubPart(subpart), fos);
writer.write(entry);
fos.close();
assertCountsEquals(571, 13, tempFile);
}
Aggregations