1   package org.apache.maven.plugin.changes;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *   http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  import junit.framework.Test;
23  import junit.framework.TestCase;
24  import junit.framework.TestSuite;
25  
26  public class ActionTest
27      extends TestCase
28  {
29      Action action = new Action();
30  
31      public ActionTest( String testName )
32      {
33          super( testName );
34      }
35  
36      protected void setUp()
37          throws Exception
38      {
39      }
40  
41      protected void tearDown()
42          throws Exception
43      {
44      }
45  
46      public static Test suite()
47      {
48          TestSuite suite = new TestSuite( ActionTest.class );
49  
50          return suite;
51      }
52  
53      public void testGetSetAction()
54      {
55          action.setAction( "action" );
56  
57          assertEquals( "action", action.getAction() );
58      }
59  
60      public void testGetSetDev()
61      {
62          action.setDev( "developer" );
63  
64          assertEquals( "developer", action.getDev() );
65      }
66  
67      public void testGetSetType()
68      {
69          action.setType( "type" );
70  
71          assertEquals( "type", action.getType() );
72      }
73  
74      public void testGetSetIssue()
75      {
76          action.setIssue( "issue" );
77  
78          assertEquals( "issue", action.getIssue() );
79      }
80  
81      public void testGetSetDueTo()
82      {
83          action.setDueTo( "due-to" );
84  
85          assertEquals( "due-to", action.getDueTo() );
86      }
87  
88      public void testGetSetDueToEmail()
89      {
90          action.setDueToEmail( "due-to-mail" );
91  
92          assertEquals( "due-to-mail", action.getDueToEmail() );
93      }
94  }