I'm trying write some tests for a class with the help of junit 5.I have imported the dependencies using Maven but when I'm try to import a csv file to use as test case using annotation @CsvFileSource(resources = "/testlist.csv") I get this error
org.junit.platform.commons.PreconditionViolationException: Classpath resource [/testlist.csv] does not exist
this is the code I'm running
package com.faezeh.shayesteh;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvFileSource;
public class MultipleOperationParamTest {
@ParameterizedTest
@CsvFileSource(resources = "/testlist.csv")
void testMultipleOpWithCsvFileSrc(int operand, int data, int result){
MultiplyOperation multop = new MultiplyOperation(operand);
int actual = multop.operate(data);
Assertions.assertEquals(result,actual);
}
}
and this is how my directories are sorted

I need to mention when I'm not using Maven as framework and sort my directories as below it works fine and there's no problem
