@@ -0,0 +1,1795 @@
+package edu.harvard.iq.dataverse.ingest.tabulardata.impl.plugins.dta;%0A%0Aimport edu.harvard.iq.dataverse.ingest.tabulardata.TabularDataIngest;%0Aimport java.io.BufferedInputStream;%0Aimport java.io.File;%0Aimport java.io.FileInputStream;%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.assertEquals;%0Aimport org.junit.Ignore;%0A%0Apublic class DTA118FileReaderTest %7B%0A%0A    DTA118FileReader instance = new DTA118FileReader(null);%0A    File nullDataFile = null;%0A%0A    @Test%0A    public void testOs() throws Exception %7B%0A        TabularDataIngest result = instance.read(new BufferedInputStream(new FileInputStream(new File(%22scripts/search/data/tabular/open-source-at-harvard118.dta%22))), nullDataFile);%0A        assertEquals(10, result.getDataTable().getDataVariables().size());%0A    %7D%0A%0A    @Ignore%0A    @Test%0A    public void testAggregated() throws Exception %7B%0A        // https://dataverse.harvard.edu/file.xhtml?fileId=3140457 Stata 14: 2018_04_06_Aggregated_dataset_v2.dta%0A        TabularDataIngest result = instance.read(new BufferedInputStream(new FileInputStream(new File(%22/tmp/2018_04_06_Aggregated_dataset_v2.dta%22))), nullDataFile);%0A        assertEquals(227, result.getDataTable().getDataVariables().size());%0A    %7D%0A%0A    @Ignore%0A    @Test%0A    public void testMmPublic() throws Exception %7B%0A        // TODO: This file was downloaded at random. We could keep trying to get it to ingest.%0A        // https://dataverse.harvard.edu/file.xhtml?fileId=2775556 Stata 14: mm_public_120615_v14.dta%0A        // For this file %22hasSTRLs%22 is true so it might be nice to get it working.%0A        TabularDataIngest result = instance.read(new BufferedInputStream(new FileInputStream(new File(%22/tmp/mm_public_120615_v14.dta%22))), nullDataFile);%0A        assertEquals(227, result.getDataTable().getDataVariables().size());%0A    %7D%0A%0A%7D%0A

add JUnit tests for Stata 14 (format 118) #2301