Skip to content

Commit a6fc7a9

Browse files
Simple fix in include controller test so generated code compiles
1 parent cb5b307 commit a6fc7a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jmeter-java-dsl/src/test/java/us/abstracta/jmeter/javadsl/core/controllers/DslIncludeControllerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class DslIncludeControllerTest {
2222
@Nested
2323
public class CodeBuilderTest extends MethodCallFragmentBuilderTest {
2424

25-
private static final String FRAGMENT_METHOD_CALL = "fragment()";
25+
private static final String FRAGMENT_METHOD_CALL = "myfragment()";
2626

2727
@Test
2828
public void shouldGenerateDslWithFragmentWhenConvertingTestPlanWithIncludeController(
@@ -38,7 +38,7 @@ public void shouldGenerateDslWithFragmentWhenConvertingTestPlanWithIncludeContro
3838

3939
private File buildIncludedTestPlanJmx(Path tmp) throws IOException {
4040
String jmx = buildTestPlanJmx(buildFragmentJmx());
41-
Path ret = tmp.resolve("fragment.jmx");
41+
Path ret = tmp.resolve("myFragment.jmx");
4242
Files.write(ret, jmx.getBytes(StandardCharsets.UTF_8));
4343
return ret.toFile();
4444
}
@@ -55,7 +55,7 @@ public String buildTestPlanDsl(String... threadGroupChildren) {
5555
.staticImports(Collections.singleton(DslTestFragmentController.class.getName()))
5656
.imports(Collections.singleton(DslTestFragmentController.class.getName()))
5757
.methodDefinitions(
58-
Collections.singletonList(buildFragmentMethod("fragment", DEFAULT_FRAGMENT_NAME)))
58+
Collections.singletonList(buildFragmentMethod("myfragment", DEFAULT_FRAGMENT_NAME)))
5959
.solve();
6060
}
6161

0 commit comments

Comments
 (0)