01: /*
02: * Created on 15.10.2004
03: *
04: * TODO To change the template for this generated file go to
05: * Window - Preferences - Java - Code Style - Code Templates
06: */
07: package org.jzonic.webtester;
08:
09: import org.jzonic.webtester.commands.*;
10:
11: import junit.framework.TestCase;
12:
13: /**
14: * @author Mecky
15: *
16: * TODO To change the template for this generated type comment go to
17: * Window - Preferences - Java - Code Style - Code Templates
18: */
19: public class GetHtmlCommandTest extends TestCase {
20:
21: public void testOne() {
22: WebTestContext ctx = new WebTestContext();
23: GetHtmlCommand command = new GetHtmlCommand();
24: command.setParameter("http://localhost:7171");
25: WebTestNodeResult result = command.execute(ctx);
26: assertNotNull(result);
27: assertTrue(!result.isSuccess());
28: assertNotNull(result.getException());
29: }
30:
31: }
|