1   package org.apache.maven.starteamlib;
2   
3   /* ====================================================================
4    *   Licensed to the Apache Software Foundation (ASF) under one or more
5    *   contributor license agreements.  See the NOTICE file distributed with
6    *   this work for additional information regarding copyright ownership.
7    *   The ASF licenses this file to You under the Apache License, Version 2.0
8    *   (the "License"); you may not use this file except in compliance with
9    *   the License.  You may obtain a copy of the License at
10   *
11   *       http://www.apache.org/licenses/LICENSE-2.0
12   *
13   *   Unless required by applicable law or agreed to in writing, software
14   *   distributed under the License is distributed on an "AS IS" BASIS,
15   *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   *   See the License for the specific language governing permissions and
17   *   limitations under the License.
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  }