Skip to content

Instantly share code, notes, and snippets.

Created December 12, 2016 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/0683c43f31bd916b76aff348ff87f51b to your computer and use it in GitHub Desktop.
Save anonymous/0683c43f31bd916b76aff348ff87f51b to your computer and use it in GitHub Desktop.
SceneConfiguration sceneConfiguration = new SceneConfiguration(rootPath, sceneMode, sceneName);
try (FlashbackRunner flashbackRunner = new FlashbackRunner.Builder().mode(sceneMode).host(host).port(port).sceneAccessLayer(
new SceneAccessLayer(SceneFactory.create(sceneConfiguration), matchRule1)).build()) {
flashbackRunner.start();
//make http request call
flashbackRunner.setMatchRule(matchRule2);
//make http request call again.
flashbackRunner.setMatchRule(matchRule3);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment