01: // Copyright (c) 2002-2005 Canoo Engineering AG, Switzerland. All Rights Reserved.
02: package com.canoo.webtest.steps.form;
03:
04: import com.canoo.webtest.steps.BaseStepTestCase;
05: import com.canoo.webtest.steps.Step;
06:
07: /**
08: * Unit tests for {@link SelectForm}.
09: * @author unknown
10: * @author Marc Guillemot
11: */
12: public class SelectFormTest extends BaseStepTestCase {
13: private SelectForm fStep;
14:
15: protected Step createStep() {
16: return new SelectForm();
17: }
18:
19: protected void setUp() throws Exception {
20: super .setUp();
21: fStep = (SelectForm) getStep();
22: }
23:
24: public void testVerifyParameters() throws Exception {
25: assertNull(fStep.getIndex());
26: assertNull(fStep.getName());
27: }
28:
29: public void testNestedText() throws Exception {
30: testNestedTextEquivalent(getStep(), "name");
31: }
32: }
|