Skip to content

Commit 2a0e3f6

Browse files
committed
chore(deps): bump Mockito to 5.21.0
Update custom VerificationMode helper to use VerificationData#getTarget() API and refresh test header year. Signed-off-by: Oleksii Orel <oorel@redhat.com>
1 parent d08790c commit 2a0e3f6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/che-core-api-core/src/test/java/org/eclipse/che/api/core/util/lineconsumer/ConcurrentCompositeLineConsumerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012-2025 Red Hat, Inc.
2+
* Copyright (c) 2012-2026 Red Hat, Inc.
33
* This program and the accompanying materials are made
44
* available under the terms of the Eclipse Public License 2.0
55
* which is available at https://www.eclipse.org/legal/epl-2.0/
@@ -32,10 +32,10 @@
3232
import org.eclipse.che.commons.test.mockito.answer.WaitingAnswer;
3333
import org.mockito.Mock;
3434
import org.mockito.exceptions.base.MockitoException;
35-
import org.mockito.internal.invocation.InvocationMatcher;
3635
import org.mockito.internal.verification.VerificationModeFactory;
3736
import org.mockito.internal.verification.api.VerificationData;
3837
import org.mockito.invocation.Invocation;
38+
import org.mockito.invocation.MatchableInvocation;
3939
import org.mockito.testng.MockitoTestNGListener;
4040
import org.mockito.verification.VerificationMode;
4141
import org.testng.annotations.AfterMethod;
@@ -270,7 +270,7 @@ public Last() {}
270270

271271
public void verify(VerificationData verificationData) {
272272
List<Invocation> invocations = verificationData.getAllInvocations();
273-
InvocationMatcher invocationMatcher = verificationData.getWanted();
273+
MatchableInvocation invocationMatcher = verificationData.getTarget();
274274

275275
if (invocations == null || invocations.isEmpty()) {
276276
throw new MockitoException(

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
<org.jgroups.version>4.1.9.Final</org.jgroups.version>
153153
<org.leadpony.justify.version>3.1.0</org.leadpony.justify.version>
154154
<org.mockito.mockito-testng.version>0.5.4</org.mockito.mockito-testng.version>
155-
<org.mockito.version>3.11.2</org.mockito.version>
155+
<org.mockito.version>5.21.0</org.mockito.version>
156156
<org.postgresql.version>42.7.9</org.postgresql.version>
157157
<org.reflections.version>0.9.9</org.reflections.version>
158158
<org.slf4j.version>2.0.17</org.slf4j.version>

0 commit comments

Comments
 (0)