2026-03-31 19:00:19 +02:00
|
|
|
package ecoparasite.population;
|
|
|
|
|
|
|
|
|
|
import ecoparasite.input.InputFactory;
|
|
|
|
|
import ecoparasite.input.InputFileException;
|
|
|
|
|
import ecoparasite.input.RawData;
|
|
|
|
|
import ecoparasite.input.RawDataOverflow;
|
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
|
|
2026-04-01 14:34:07 +02:00
|
|
|
import java.util.HashSet;
|
2026-03-31 19:00:19 +02:00
|
|
|
|
|
|
|
|
import static org.junit.jupiter.api.Assertions.*;
|
|
|
|
|
|
|
|
|
|
class PopulationParsingTest {
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
void parseParasitesPeru() throws InputFileException, RawDataOverflow {
|
|
|
|
|
|
|
|
|
|
RawData parasitesPeru = InputFactory.readData( InputFactory.DATA_PARASITES_PERU, "," );
|
2026-04-01 14:34:07 +02:00
|
|
|
HashSet<Population> populations = Population.parse( parasitesPeru );
|
2026-03-31 19:00:19 +02:00
|
|
|
System.out.println( populations);
|
|
|
|
|
}
|
2026-04-01 14:34:07 +02:00
|
|
|
|
2026-03-31 19:00:19 +02:00
|
|
|
}
|