Skip to content

Commit a71c05e

Browse files
committed
Add missing test per JaCoCo test coverage
1 parent d6b7a47 commit a71c05e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/java/org/apache/commons/lang3/tuple/ImmutableTripleTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ void testNullTripleTyped() {
120120

121121
@Test
122122
void testOf() {
123+
assertSame(ImmutableTriple.nullTriple(), ImmutableTriple.of(null, null, null));
124+
assertEquals(0, ImmutableTriple.of(0, null, null).getLeft());
125+
assertEquals(0, ImmutableTriple.of(null, 0, null).getMiddle());
126+
assertEquals(0, ImmutableTriple.of(null, null, 0).getRight());
123127
final ImmutableTriple<Integer, String, Boolean> triple = ImmutableTriple.of(0, "foo", Boolean.FALSE);
124128
assertEquals(0, triple.left.intValue());
125129
assertEquals(0, triple.getLeft().intValue());

0 commit comments

Comments
 (0)