Skip to content

Commit 9744582

Browse files
committed
Add missing test per JaCoCo test coverage
Fix Checkstyle
1 parent db27bc3 commit 9744582

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/test/java/org/apache/commons/lang3/concurrent/locks/LockingVisitorsTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ protected boolean containsTrue(final boolean[] booleanArray) {
4949
}
5050

5151
private void runTest(final Duration delay, final boolean exclusiveLock, final LongConsumer runTimeCheck,
52-
final boolean[] booleanValues, final LockVisitor<boolean[], ?> visitor) throws InterruptedException {
52+
final boolean[] booleanValues, final LockVisitor<boolean[], ?> visitor) throws InterruptedException {
53+
assertNotNull(visitor.getLock());
54+
assertNotNull(visitor.getObject());
5355
final boolean[] runningValues = new boolean[10];
54-
5556
final long startTimeMillis = System.currentTimeMillis();
5657
for (int i = 0; i < booleanValues.length; i++) {
5758
final int index = i;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ void testOfNonNull() {
116116

117117
@Test
118118
void testPairOfMapEntry() {
119-
assertNull( MutablePair.of(null).getLeft());
120-
assertNull( MutablePair.of(null).getRight());
119+
assertNull(MutablePair.of(null).getLeft());
120+
assertNull(MutablePair.of(null).getRight());
121121
final HashMap<Integer, String> map = new HashMap<>();
122122
map.put(0, "foo");
123123
final Entry<Integer, String> entry = map.entrySet().iterator().next();

0 commit comments

Comments
 (0)