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.commands;
08:
09: import org.jzonic.webtester.SimpleWebServer;
10: import org.jzonic.webtester.WebTestFileReader;
11: import org.jzonic.webtester.WebTestResult;
12: import org.jzonic.webtester.writer.WebTestResultConsoleWriter;
13:
14: import junit.framework.TestCase;
15:
16: /**
17: * @author Mecky
18: */
19: public class ClickCommandTest extends TestCase {
20:
21: private SimpleWebServer server;
22:
23: public void setUp() throws Exception {
24: server = new SimpleWebServer();
25: }
26:
27: public void tearDown() {
28: server.shutdown();
29: }
30:
31: public void _testLinkID() {
32: WebTestFileReader reader = new WebTestFileReader();
33: WebTestResult result = reader
34: .parseFile("internal_test/link.test");
35: assertEquals(result.isSuccess(), true);
36: WebTestResultConsoleWriter writer = new WebTestResultConsoleWriter();
37: writer.generateResult(result);
38: }
39:
40: public void testLinkWithImageText() {
41: WebTestFileReader reader = new WebTestFileReader();
42: WebTestResult result = reader
43: .parseFile("internal_test/link_image.test");
44: assertEquals(result.isSuccess(), true);
45: WebTestResultConsoleWriter writer = new WebTestResultConsoleWriter();
46: writer.generateResult(result);
47: }
48:
49: }
|