01: // Copyright © 2006-2007 ASERT. Released under the Canoo Webtest license.
02: package com.canoo.webtest.plugins.emailtest;
03:
04: import com.canoo.webtest.steps.BaseStepTestCase;
05: import com.canoo.webtest.steps.Step;
06:
07: /**
08: * Test for {@link EmailSetConfig}.
09: *
10: * @author Paul King, ASERT
11: */
12: public class EmailSetConfigTest extends BaseStepTestCase {
13: protected Step createStep() {
14: return new EmailSetConfig();
15: }
16:
17: public void testEmailConfigInfoSetOnExecute() throws Exception {
18: final Step step = getStep();
19: step.doExecute();
20: assertNotNull(step.getContext().get("EmailConfigInfo"));
21: }
22:
23: public void testDefaultType() throws Exception {
24: final EmailSetConfig step = (EmailSetConfig) getStep();
25: assertEquals("pop3", step.getType());
26: }
27: }
|