01: package com.canoo.webtest.steps;
02:
03: /**
04: * Tests for {@link TestInfoStep}. In fact nothing to test as this step does nothing ;-)
05: * @author Marc Guillemot
06: */
07: public class TestInfoStepTest extends BaseStepTestCase {
08:
09: protected Step createStep() {
10: return new TestInfoStep();
11: }
12:
13: public void testSimple() {
14: final TestInfoStep step = (TestInfoStep) getStep();
15: step.setType("foo");
16: assertEquals("foo", step.getType());
17:
18: step.setInfo("foo1");
19: assertEquals("foo1", step.getInfo());
20:
21: step.setInfo("foo1");
22: assertEquals("foo1", step.getInfo());
23:
24: step.addText("bla");
25: assertEquals("foo1bla", step.getInfo());
26: }
27:
28: public void testVerifyParameters() {
29: assertStepRejectsEmptyParam("type", getExecuteStepTestBlock());
30: }
31: }
|