1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.model;
20
21 import org.junit.jupiter.api.Test;
22
23 import static org.junit.jupiter.api.Assertions.assertFalse;
24 import static org.junit.jupiter.api.Assertions.assertNotNull;
25 import static org.junit.jupiter.api.Assertions.assertTrue;
26
27
28
29
30
31
32 class RepositoryPolicyTest {
33
34 @Test
35 void testHashCodeNullSafe() {
36 new RepositoryPolicy().hashCode();
37 }
38
39 @Test
40 void testEqualsNullSafe() {
41 assertFalse(new RepositoryPolicy().equals(null));
42
43 new RepositoryPolicy().equals(new RepositoryPolicy());
44 }
45
46 @Test
47 void testEqualsIdentity() {
48 RepositoryPolicy thing = new RepositoryPolicy();
49 assertTrue(thing.equals(thing));
50 }
51
52 @Test
53 void testToStringNullSafe() {
54 assertNotNull(new RepositoryPolicy().toString());
55 }
56 }