1 package org.apache.maven.model;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import junit.framework.TestCase;
23
24
25
26
27
28
29 public class IssueManagementTest
30 extends TestCase
31 {
32
33 public void testHashCodeNullSafe()
34 {
35 new IssueManagement().hashCode();
36 }
37
38 public void testEqualsNullSafe()
39 {
40 assertFalse( new IssueManagement().equals( null ) );
41
42 new IssueManagement().equals( new IssueManagement() );
43 }
44
45 public void testEqualsIdentity()
46 {
47 IssueManagement thing = new IssueManagement();
48 assertTrue( thing.equals( thing ) );
49 }
50
51 public void testToStringNullSafe()
52 {
53 assertNotNull( new IssueManagement().toString() );
54 }
55
56 public void testToStringNotNonsense()
57 {
58 IssueManagement im = new IssueManagement();
59 im.setSystem( "Velociraptor" );
60 im.setUrl( "https://velo.localdomain" );
61
62 String s = im.toString();
63
64 assert "IssueManagement {system=Velociraptor, url=https://velo.localdomain}".equals( s ) : s;
65 }
66 }