Skip to content

Commit

Permalink
Update FileParserTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyah committed May 14, 2026
1 parent c593d6c commit 7070eea
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@

class FileParserTest {

private final String testStockDataPath = "src/main/resources/testStockData.txt";
private final String testStockDataPath = "/testStockData.txt";

private final String absoluteTestStockDataPath = "src/main/resources/testStockData.txt";
FileParser fileParser;

private final String validStockFromFile = "NVID, Nvidida Corporation, 241.591";
Expand All @@ -29,7 +31,7 @@ class FileParserTest {
@BeforeEach
void setUp() throws Exception {
fileParser = new FileParser(testStockDataPath);
Path path = Paths.get(testStockDataPath);
Path path = Paths.get(absoluteTestStockDataPath);
allLines = Files.readAllLines(path);
try {
validStocks = fileParser.readFile();
Expand Down

0 comments on commit 7070eea

Please sign in to comment.