01: // Copyright © 2002-2005 Canoo Engineering AG, Switzerland.
02: package com.canoo.webtest.steps.control;
03:
04: import com.canoo.webtest.steps.Step;
05: import com.canoo.webtest.steps.verify.VerifyXPath;
06:
07: public class NotStepTest extends BaseWrappedStepTestCase {
08:
09: protected Step createStep() {
10: return new NotStep();
11: }
12:
13: public void testSuccessScenario() {
14: final NotStep step = (NotStep) getStep();
15:
16: final VerifyXPath nestedStep = new VerifyXPath();
17: nestedStep.setProject(step.getProject());
18: nestedStep.setXpath("1 < 0");
19:
20: step.addStep(nestedStep);
21:
22: step.execute();
23: }
24: }
|