Skip to content

Commit

Permalink
Simple fix in include controller test so generated code compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
rabelenda-abstracta committed Nov 18, 2022
1 parent cb5b307 commit a6fc7a9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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();
}
Expand All @@ -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();
}

Expand Down

0 comments on commit a6fc7a9

Please sign in to comment.