|
18 | 18 | */
|
19 | 19 |
|
20 | 20 | /*
|
21 |
| - * Copyright (c) 2008, 2021, Oracle and/or its affiliates. All rights reserved. |
| 21 | + * Copyright (c) 2008, 2023, Oracle and/or its affiliates. All rights reserved. |
22 | 22 | */
|
23 | 23 | package org.opengrok.indexer.history;
|
24 | 24 |
|
@@ -292,6 +292,22 @@ public void testEquals() {
|
292 | 292 | assertEquals(e, instance);
|
293 | 293 | }
|
294 | 294 |
|
| 295 | + @Test |
| 296 | + public void testNotEqualsRevision() { |
| 297 | + HistoryEntry e = new HistoryEntry(historyRevision + "0", historyDisplayRevision, historyDate, |
| 298 | + historyAuthor, historyMessage, true, null); |
| 299 | + assertNotSame(e, instance); |
| 300 | + assertNotEquals(e, instance); |
| 301 | + } |
| 302 | + |
| 303 | + @Test |
| 304 | + public void testNotEqualsDisplayRevision() { |
| 305 | + HistoryEntry e = new HistoryEntry(historyRevision, historyDisplayRevision + "0", historyDate, |
| 306 | + historyAuthor, historyMessage, true, null); |
| 307 | + assertNotSame(e, instance); |
| 308 | + assertNotEquals(e, instance); |
| 309 | + } |
| 310 | + |
295 | 311 | @Test
|
296 | 312 | public void testEqualsWithFilesInstance() {
|
297 | 313 | HistoryEntry e = new HistoryEntry(historyRevision, historyDisplayRevision, historyDate,
|
|
0 commit comments