Skip to content

Commit

Permalink
Merge pull request #26270 from qmonmert/sonar260524
Browse files Browse the repository at this point in the history
Sonar: This block of commented-out lines of code should be removed
  • Loading branch information
DanielFran authored May 26, 2024
2 parents e5c605e + b6003b8 commit 69365db
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ import static io.gatling.javaapi.http.HttpDsl.headerRegex;
import static io.gatling.javaapi.http.HttpDsl.http;
import static io.gatling.javaapi.http.HttpDsl.status;

import ch.qos.logback.classic.LoggerContext;
import java.time.Duration;
import java.util.Map;
import java.util.Optional;
import io.gatling.javaapi.core.ChainBuilder;
import io.gatling.javaapi.core.ScenarioBuilder;
import io.gatling.javaapi.core.Simulation;
import io.gatling.javaapi.http.HttpProtocolBuilder;
import org.slf4j.LoggerFactory;

/**
* Performance test for the <%= entityClass %> entity.
Expand All @@ -45,14 +43,6 @@ import org.slf4j.LoggerFactory;
*/
public class <%= entityClass %>GatlingTest extends Simulation {

LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
{
// Log all HTTP requests
//context.getLogger("io.gatling.http").setLevel(Level.valueOf("TRACE"));
// Log failed HTTP requests
//context.getLogger("io.gatling.http").setLevel(Level.valueOf("DEBUG"));
}

String baseURL = Optional.ofNullable(System.getProperty("baseURL")).orElse("http://localhost:<%= serverPort %>");

HttpProtocolBuilder httpConf = http
Expand Down

0 comments on commit 69365db

Please sign in to comment.