1   package org.apache.maven.plugin.jira;
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 JiraIssueTest
27      extends TestCase
28  {
29      JiraIssue issue;
30  
31      public JiraIssueTest( String testName )
32      {
33          super( testName );
34      }
35  
36      protected void setUp()
37          throws Exception
38      {
39          issue = new JiraIssue();
40      }
41  
42      protected void tearDown()
43          throws Exception
44      {
45      }
46  
47      public static Test suite()
48      {
49          TestSuite suite = new TestSuite( JiraIssueTest.class );
50  
51          return suite;
52      }
53  
54      public void testGetSetKey()
55      {
56          issue.setKey( "key" );
57  
58          assertEquals( "key", issue.getKey() );
59      }
60  
61      public void testGetSetSummary()
62      {
63          issue.setSummary( "summary" );
64  
65          assertEquals( "summary", issue.getSummary() );
66      }
67  
68      public void testGetSetStatus()
69      {
70          issue.setStatus( "status" );
71  
72          assertEquals( "status", issue.getStatus() );
73      }
74  
75      public void testGetSetResolution()
76      {
77          issue.setResolution( "resolution" );
78  
79          assertEquals( "resolution", issue.getResolution() );
80      }
81  
82      public void testGetSetAssignee()
83      {
84          issue.setAssignee( "assignee" );
85  
86          assertEquals( "assignee", issue.getAssignee() );
87      }
88  
89  }