Merge pull request #9647 from amit2103/JAVA-2028
updated unit test cases so that build doesn't generate un-committed f…
This commit is contained in:
@@ -2,15 +2,26 @@ package com.baeldung.univocity;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.baeldung.univocity.model.Product;
|
||||
|
||||
public class ParsingServiceUnitTest {
|
||||
|
||||
@After
|
||||
public void cleanup() {
|
||||
File csvFile = new File("src/test/resources/outputProductList.csv");
|
||||
csvFile.deleteOnExit();
|
||||
|
||||
File textFile = new File("src/test/resources/outputProductList.txt");
|
||||
textFile.deleteOnExit();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void givenCsvFile_thenParsedResultsShouldBeReturned() {
|
||||
ParsingService parsingService = new ParsingService();
|
||||
|
||||
Reference in New Issue
Block a user