1 package org.apache.maven.starteamlib;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 import junit.framework.TestCase;
22
23 /**
24 * Unit Tests for {@link StarteamChangeLogFactory}
25 * @author <a href="mailto:evenisse@ifrance.com">Emmanuel Venisse</a>
26 * @version $Id: StarteamChangeLogFactoryTest.java 532339 2007-04-25 12:28:56Z ltheussl $
27 */
28 public class StarteamChangeLogFactoryTest extends TestCase
29 {
30 /** the instance being tested */
31 private StarteamChangeLogFactory instance;
32
33 /**
34 * Create a test with the given name
35 * @param testName the name of the test
36 */
37 public StarteamChangeLogFactoryTest(String testName)
38 {
39 super(testName);
40 }
41
42 /**
43 * Initialize per test data
44 * @throws Exception when there is an unexpected problem
45 */
46 public void setUp() throws Exception
47 {
48 instance = new StarteamChangeLogFactory();
49 }
50
51 /** test the constructor */
52 public void testConstructor()
53 {
54 assertNotNull("new instance wasn't created", instance);
55 }
56
57 /** test creating the generator */
58 public void testCreateGenerator()
59 {
60 testConstructor();
61 assertNotNull("Generator was not created", instance.createGenerator());
62 }
63
64 /** test creating the parser */
65 public void testCreateParser()
66 {
67 testConstructor();
68 assertNotNull("Parser was not created", instance.createParser());
69 }
70
71 }