How to pass a Input and Expected file name dynamically for BeforeAll Method | Junit 5
问题 I have Implemented a test cases to check the Input and expected Json files are same. @BeforeAll static void setUp() throws IOException { inputList = readInput(CommonTestConstants.FilePath + "/Input1.json"); expectedList = readExpected(CommonTestConstants.FilePath + "/Expected1.json"); assertEquals("Checking size of both list", inputList.size(), expectedList.size()); } static Stream<Arguments> Arguments() { return IntStream.range(0, inputList.size()) .mapToObj(i -> Arguments.of(inputList.get(i