01: /*
02: * Author: Chris Seguin
03: *
04: * This software has been developed under the copyleft
05: * rules of the GNU General Public License. Please
06: * consult the GNU General Public License for more
07: * details about use and distribution of this software.
08: */
09: package org.acm.seguin.pretty.ai;
10:
11: import junit.framework.TestCase;
12:
13: /**
14: * Unit tests for the ParseVariableName object
15: *
16: *@author Chris Seguin
17: */
18: public class TestParseVariableName extends TestCase {
19: /**
20: * Constructor for the TestParseVariableName object
21: *
22: *@param name Description of Parameter
23: */
24: public TestParseVariableName(String name) {
25: super (name);
26: }
27:
28: /**
29: * A unit test for JUnit
30: */
31: public void test01() {
32: ParseVariableName pvn = new ParseVariableName();
33:
34: assertEquals("First attempt", "parse variable name", pvn
35: .parse("ParseVariableName"));
36: assertEquals("Second attempt", "parse variable name", pvn
37: .parse("parseVariableName"));
38: }
39:
40: /**
41: * A unit test for JUnit
42: */
43: public void test02() {
44: ParseVariableName pvn = new ParseVariableName();
45:
46: assertEquals("First attempt", "find URL", pvn.parse("findURL"));
47: assertEquals("Second attempt", "get URL path", pvn
48: .parse("GetURLPath"));
49: }
50: }
|