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 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 }