/** * Created by IntelliJ IDEA. * User: Nick Ebbutt * Date: 14/06/12 * Time: 09:21 */ @Handler("Start A Process With Classpath") public class ProcessWithClasspathHandler extends ChorusAssert { @Step("Chorus is working properly") public void isWorkingProperly() { } }
/** * Created by IntelliJ IDEA. * User: Nick Ebbutt * Date: 14/06/12 * Time: 09:21 */ @Handler("Process With Configurations") public class ProcessWithConfigurationsHandler extends ChorusAssert { @Step("Chorus is working properly") public void isWorkingProperly() { } }
@Handler("Test Step Publisher Handler") public static class MockHandler { @Step(value = "call a test step", id = "step1") public void callATestStep() { System.out.println("Hello!"); stepCalled.set(true); } }
/** * Created by IntelliJ IDEA. * User: Nick Ebbutt * Date: 14/06/12 * Time: 09:21 */ @Handler("Feature Parsing") public class FeatureParsingHandler { @Step("Chorus is working properly") public void isWorkingProperly() { } }
/** * Created by IntelliJ IDEA. * User: Nick Ebbutt * Date: 14/06/12 * Time: 09:21 */ @Handler("Start A Process Without Logging") public class StartAProcessHandler extends ChorusAssert { @Step("Chorus is working properly") public void isWorkingProperly() { } }
@Handler("DynamicProcessHandler") public static class DynamicProcessHandler { @Step(".*call an exported method") public String callMethod() { return "dumbledore"; } }
/** * Created by IntelliJ IDEA. * User: Nick Ebbutt * Date: 14/06/12 * Time: 09:21 */ @Handler("Default Properties") public class DefaultPropertiesHandler extends ChorusAssert { @Step("call a remote method") public String callARemoteMethod() { return "true"; } }
/** * Created by IntelliJ IDEA. * User: Nick Ebbutt * Date: 14/06/12 * Time: 09:21 */ @Handler("JMX With Configurations") public class JmxWithConfigurationsHandler extends ChorusAssert { @Step("I can call a step method exported by the handler") public void canCallAMethod() { } }
/** * Created by IntelliJ IDEA. * User: Nick Ebbutt * Date: 14/06/12 * Time: 09:21 */ @Handler("Feature Scoped Process") public class FeatureScopedProcessHandler extends ChorusAssert { @Step(".*say hello") public void isWorkingProperly() { } }
/** * Created by IntelliJ IDEA. * User: Nick Ebbutt * Date: 14/06/12 * Time: 09:21 */ @Handler("Check Running") public class CheckRunningHandler extends ChorusAssert { @Step("Chorus is working properly") public void isWorkingProperly() { } }
/** * Created by IntelliJ IDEA. * User: Nick Ebbutt * Date: 14/06/12 * Time: 09:21 */ @Handler("Remoting Handler For Export") public class RemotingHandlerForExport extends ChorusAssert { @Step("I can call a step method exported by the handler") public void canCallAMethod() { } }
@Handler("Echo Values") public static class EchoingHandler { @Step(".*accept a string with value '(.*)'") public void accept(String s) { System.out.println(s); } } }
/** * Created by IntelliJ IDEA. * User: Nick Ebbutt * Date: 14/06/12 * Time: 09:21 */ @Handler("Process Check Delay") public class StartAProcessHandler extends ChorusAssert { @Step("Chorus is working properly") public void isWorkingProperly() { } }
/** * Created by IntelliJ IDEA. * User: Nick Ebbutt * Date: 14/06/12 * Time: 09:21 */ @Handler("Start Non Java Processes") public class StartAProcessHandler extends ChorusAssert { @Step("Chorus is working properly") public void isWorkingProperly() { } }
@Handler("SecondWebSocketStepPublisherHandler") public static class SecondWebSocketStepPublisherHandler { @Step(".* call a step on the second publisher") public String sayHelloFromSecondPublisher() { return "Hello!"; } } }
@Handler("NotScoped") public static class NotScopedHandler { @Step("I can call an exported method on myNotScoped") public String callAMethod() { return "OK"; } }
@Handler("Scoped") public static class ScopedHandler { @Step("I can call an exported method on scoped") public String callAMethod() { return "OK"; } }
/** * Created by IntelliJ IDEA. * User: Nick Ebbutt * Date: 14/06/12 * Time: 09:21 */ @Handler("DuplicateHandlerTwo") public class DuplicateStepMatchHandlerTwo { @Step("steps which conflict between two handlers (also cause a match .*)") public void conflict(String s) { } }
/** * Created by IntelliJ IDEA. * User: Nick Ebbutt * Date: 14/06/12 * Time: 09:21 */ @Handler("Test JUnit Suite Handler") public class JUnitSuiteHandler { @Step("Chorus is working properly") public void isWorkingProperly() { } @Step("I can run a feature with a single scenario") public void canRunAFeature() { } }
@Handler(value = "Chrome Driver Connection") public class ChromeDriverConnectionHandler { @ChorusResource("feature.dir") File featureDir; @Step(".* set the chorus context variable pathToTestHtmlFile") public void setAFilePath() { ChorusContext.getContext().put("pathToTestHtmlFile", "file://" + new File(featureDir, "testHtml.html").getAbsolutePath()); } }