Skip to content

Rewriting ScenarioDesigner method #326

Open
@ShubhamShekhar1996

Description

@ShubhamShekhar1996

In my old citrus version code I have below method:-

@Scenario("Example")
@RequestMapping(value = "/sim/example", method = RequestMethod.GET)
public class GetCircuit extends AbstractSimulatorScenario {

@Override
public void run(ScenarioDesigner scenario) {

    scenario.http().receive().get();
    scenario.http().send().response(HttpStatus.OK).header("ContentType", "application/json")
            .payload(new ClassPathResource("datamanager/example.json"));

}

}

In newer version how can I write the same code as ScenarioDesigner class no longer exist?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions