Commit 13367922 authored by Stephan Korsholm's avatar Stephan Korsholm
Browse files

#174: failing test

parent e30e452e
Showing with 8 additions and 1 deletion
+8 -1
package org.seamcat.tabulardataio;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.junit.Test;
import org.seamcat.model.InterferenceLinkElement;
import org.seamcat.model.correlation.Correlated;
import org.seamcat.model.correlation.NoneMode;
import org.seamcat.model.distributions.ConstantDistributionImpl;
import org.seamcat.model.distributions.Distribution;
import org.seamcat.model.plugin.system.CorrelationMode;
......@@ -108,5 +110,10 @@ public class TestInterferenceLinkExporter {
InputStream ip = exporter.export();
Workbook workbook = new XSSFWorkbook(ip);
Sheet firstSheet = workbook.getSheetAt(0);
// Get the number of rows in the sheet
int rowCount = firstSheet.getPhysicalNumberOfRows();
assertEquals(1, rowCount);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment