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 class RepositoryPolicyTest {
32
33 @Test
34 void testHashCodeNullSafe() {
35 new RepositoryPolicy().hashCode();
36 }
37
38 @Test
39 void testEqualsNullSafe() {
40 assertFalse(new RepositoryPolicy().equals(null));
41
42 new RepositoryPolicy().equals(new RepositoryPolicy());
43 }
44
45 @Test
46 void testEqualsIdentity() {
47 RepositoryPolicy thing = new RepositoryPolicy();
48 assertTrue(thing.equals(thing));
49 }
50
51 @Test
52 void testToStringNullSafe() {
53 assertNotNull(new RepositoryPolicy().toString());
54 }
55 }