@@ -95,7 +95,7 @@ protected Stream<PopulationBuilder> createScenarios(boolean isParallel) {
9595 private PopulationBuilder createScenarioWithInjection (String sourceFile , boolean isParallel , MatrixModes mode ,
9696 String profile ) {
9797 String scenarioName = formatScenarioName (mode , profile , isParallel );
98- return createMatrixScenario (scenarioName , sourceFile , config , mode , profile )
98+ return createMatrixScenario (scenarioName , sourceFile , mode , profile )
9999 .injectOpen (atOnceUsers (config .getNumConcurrentUsers ()));
100100 }
101101
@@ -121,7 +121,7 @@ private String formatScenarioName(MatrixModes mode, String profile, boolean isPa
121121 * @param profile routing profile to test
122122 * @return ScenarioBuilder configured for matrix testing
123123 */
124- private static ScenarioBuilder createMatrixScenario (String name , String sourceFile , Config config ,
124+ private static ScenarioBuilder createMatrixScenario (String name , String sourceFile ,
125125 MatrixModes mode , String profile ) {
126126 try {
127127 List <Map <String , Object >> records = csv (sourceFile ).readRecords ();
@@ -135,7 +135,7 @@ private static ScenarioBuilder createMatrixScenario(String name, String sourceFi
135135 return scenario (name )
136136 .feed (targetRecords .iterator (), 1 )
137137 .asLongAs (session -> remainingRecords .decrementAndGet () >= 0 )
138- .on (exec (createRequest (name , config , mode , profile )));
138+ .on (exec (createRequest (name , mode , profile )));
139139
140140 } catch (IllegalStateException e ) {
141141 logger .error ("Error building scenario: " , e );
@@ -148,16 +148,15 @@ private static ScenarioBuilder createMatrixScenario(String name, String sourceFi
148148 * Creates an HTTP request action for the matrix API endpoint.
149149 *
150150 * @param name request name for identification in test results
151- * @param config test configuration
152151 * @param mode matrix calculation mode
153152 * @param profile routing profile
154153 * @return HttpRequestActionBuilder configured for matrix API calls
155154 */
156- private static HttpRequestActionBuilder createRequest (String name , Config config , MatrixModes mode ,
155+ private static HttpRequestActionBuilder createRequest (String name , MatrixModes mode ,
157156 String profile ) {
158157 return http (name )
159158 .post ("/v2/matrix/" + profile )
160- .body (StringBody (session -> createRequestBody (session , config , mode )))
159+ .body (StringBody (session -> createRequestBody (session , mode )))
161160 .asJson ()
162161 .check (status ().is (200 ));
163162 }
@@ -166,12 +165,11 @@ private static HttpRequestActionBuilder createRequest(String name, Config config
166165 * Creates the JSON request body for matrix API calls from CSV session data.
167166 *
168167 * @param session Gatling session containing CSV row data
169- * @param config test configuration
170168 * @param mode matrix calculation mode providing additional parameters
171169 * @return JSON string representation of the request body
172170 * @throws RequestBodyCreationException if JSON serialization fails
173171 */
174- static String createRequestBody (Session session , Config config , MatrixModes mode ) {
172+ static String createRequestBody (Session session , MatrixModes mode ) {
175173 try {
176174 // Get the data from the CSV row
177175 String coordinatesStr = (String ) session .get ("coordinates" );
0 commit comments