1 package org.apache.maven.plugin.changes;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 }