Added Stub Runner, fixes #64

This commit is contained in:
Marcin Grzejszczak
2017-08-23 16:53:36 +02:00
parent 6b83f5d86a
commit 5c34b170f4
14 changed files with 229 additions and 13 deletions

View File

@@ -0,0 +1,6 @@
package org.test
@EnableStubRunnerServer
class Example {
}

View File

@@ -76,4 +76,11 @@ public class SampleIntegrationTests {
output.contains("[/routes || /routes.json],methods=[GET]"));
}
@Test
public void stubRunnerSample() throws Exception {
String output = this.cli.run("stubrunner.groovy");
assertTrue("Wrong output: " + output,
output.contains("[/stubs],produces=[application/json]"));
}
}