We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf072ca commit d5dc7f6Copy full SHA for d5dc7f6
opengrok-indexer/src/test/java/org/opengrok/indexer/history/HistoryEntryTest.java
@@ -32,6 +32,7 @@
32
33
import static org.junit.jupiter.api.Assertions.assertEquals;
34
import static org.junit.jupiter.api.Assertions.assertFalse;
35
+import static org.junit.jupiter.api.Assertions.assertNotSame;
36
import static org.junit.jupiter.api.Assertions.assertNull;
37
import static org.junit.jupiter.api.Assertions.assertTrue;
38
@@ -246,4 +247,11 @@ public void strip() {
246
247
assertNull(instance.getTags());
248
}
249
250
+ @Test
251
+ public void testEquals() {
252
+ // TODO: add tests with nulls
253
+ HistoryEntry e = new HistoryEntry(instance);
254
+ assertNotSame(e, instance);
255
+ assertEquals(e, instance);
256
+ }
257
0 commit comments