From a6fc7a9df83b51a208a342c74b071c3dad206f03 Mon Sep 17 00:00:00 2001 From: Roger Abelenda Date: Fri, 18 Nov 2022 15:23:41 -0300 Subject: [PATCH] Simple fix in include controller test so generated code compiles --- .../javadsl/core/controllers/DslIncludeControllerTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jmeter-java-dsl/src/test/java/us/abstracta/jmeter/javadsl/core/controllers/DslIncludeControllerTest.java b/jmeter-java-dsl/src/test/java/us/abstracta/jmeter/javadsl/core/controllers/DslIncludeControllerTest.java index 51ef6798..0e93c427 100644 --- a/jmeter-java-dsl/src/test/java/us/abstracta/jmeter/javadsl/core/controllers/DslIncludeControllerTest.java +++ b/jmeter-java-dsl/src/test/java/us/abstracta/jmeter/javadsl/core/controllers/DslIncludeControllerTest.java @@ -22,7 +22,7 @@ public class DslIncludeControllerTest { @Nested public class CodeBuilderTest extends MethodCallFragmentBuilderTest { - private static final String FRAGMENT_METHOD_CALL = "fragment()"; + private static final String FRAGMENT_METHOD_CALL = "myfragment()"; @Test public void shouldGenerateDslWithFragmentWhenConvertingTestPlanWithIncludeController( @@ -38,7 +38,7 @@ public void shouldGenerateDslWithFragmentWhenConvertingTestPlanWithIncludeContro private File buildIncludedTestPlanJmx(Path tmp) throws IOException { String jmx = buildTestPlanJmx(buildFragmentJmx()); - Path ret = tmp.resolve("fragment.jmx"); + Path ret = tmp.resolve("myFragment.jmx"); Files.write(ret, jmx.getBytes(StandardCharsets.UTF_8)); return ret.toFile(); } @@ -55,7 +55,7 @@ public String buildTestPlanDsl(String... threadGroupChildren) { .staticImports(Collections.singleton(DslTestFragmentController.class.getName())) .imports(Collections.singleton(DslTestFragmentController.class.getName())) .methodDefinitions( - Collections.singletonList(buildFragmentMethod("fragment", DEFAULT_FRAGMENT_NAME))) + Collections.singletonList(buildFragmentMethod("myfragment", DEFAULT_FRAGMENT_NAME))) .solve(); }