View Javadoc
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  import org.apache.maven.plugins.changes.model.Action;
27  
28  public class ActionTest
29      extends TestCase
30  {
31      Action action = new Action();
32  
33      public ActionTest( String testName )
34      {
35          super( testName );
36      }
37  
38      protected void setUp()
39          throws Exception
40      {
41      }
42  
43      protected void tearDown()
44          throws Exception
45      {
46      }
47  
48      public static Test suite()
49      {
50          TestSuite suite = new TestSuite( ActionTest.class );
51  
52          return suite;
53      }
54  
55      public void testGetSetAction()
56      {
57          action.setAction( "action" );
58  
59          assertEquals( "action", action.getAction() );
60      }
61  
62      public void testGetSetDev()
63      {
64          action.setDev( "developer" );
65  
66          assertEquals( "developer", action.getDev() );
67      }
68  
69      public void testGetSetType()
70      {
71          action.setType( "type" );
72  
73          assertEquals( "type", action.getType() );
74      }
75  
76      public void testGetSetIssue()
77      {
78          action.setIssue( "issue" );
79  
80          assertEquals( "issue", action.getIssue() );
81      }
82  
83      public void testGetSetDueTo()
84      {
85          action.setDueTo( "due-to" );
86  
87          assertEquals( "due-to", action.getDueTo() );
88      }
89  
90      public void testGetSetDueToEmail()
91      {
92          action.setDueToEmail( "due-to-mail" );
93  
94          assertEquals( "due-to-mail", action.getDueToEmail() );
95      }
96  }