Skip to content

Commit

Permalink
Avoid warning when starting jmeter engine
Browse files Browse the repository at this point in the history
  • Loading branch information
rabelenda-abstracta committed Nov 6, 2023
1 parent 7d04dab commit b8db213
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@

import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.Collections;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.apache.http.entity.ContentType;
import org.apache.jmeter.protocol.http.util.HTTPConstants;
import org.junit.BeforeClass;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.slf4j.bridge.SLF4JBridgeHandler;
import us.abstracta.jmeter.javadsl.codegeneration.TestClassTemplate;
import us.abstracta.jmeter.javadsl.core.StringTemplateAssert;
Expand All @@ -23,7 +20,7 @@

public class JmeterDslRecorderIT {

@BeforeClass
@BeforeAll
public static void setupClass() {
SLF4JBridgeHandler.removeHandlersForRootLogger();
SLF4JBridgeHandler.install();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public class EmbeddedJmeterEngine implements DslJmeterEngine {

private static final Logger LOG = LoggerFactory.getLogger(EmbeddedJmeterEngine.class);
private final Map<String, Object> props = new HashMap<>();
private final StandardJMeterEngine engine = new StandardJMeterEngine();
private String propsFile;

/**
Expand Down Expand Up @@ -174,6 +173,7 @@ public boolean isStats() {

protected TestRunner buildTestRunner(HashTree testPlanTree, HashTree rootTree,
TestStopper testStopper) {
StandardJMeterEngine engine = new StandardJMeterEngine();
engine.configure(rootTree);
return new TestRunner() {

Expand Down

0 comments on commit b8db213

Please sign in to comment.