From df0e38cb8185975055e51585abf4166b7578e19e Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 12 Jan 2022 15:08:46 +0000 Subject: [PATCH] Upgrade to Mockito 4.2.0 --- spring-restdocs-platform/build.gradle | 2 +- .../RestAssuredRestDocumentationConfigurerTests.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-restdocs-platform/build.gradle b/spring-restdocs-platform/build.gradle index 1250a5fb..a5ae8aa6 100644 --- a/spring-restdocs-platform/build.gradle +++ b/spring-restdocs-platform/build.gradle @@ -24,7 +24,7 @@ dependencies { api("org.javamoney:moneta:1.1") api("org.jruby:jruby-complete:9.1.13.0") api("org.junit.jupiter:junit-jupiter-api:5.0.0") - api("org.mockito:mockito-core:1.10.19") + api("org.mockito:mockito-core:4.2.0") api("org.synchronoss.cloud:nio-multipart-parser:1.1.0") } api(enforcedPlatform("org.springframework:spring-framework-bom:$springVersion")) diff --git a/spring-restdocs-restassured/src/test/java/org/springframework/restdocs/restassured3/RestAssuredRestDocumentationConfigurerTests.java b/spring-restdocs-restassured/src/test/java/org/springframework/restdocs/restassured3/RestAssuredRestDocumentationConfigurerTests.java index 53e02b50..f3603306 100644 --- a/spring-restdocs-restassured/src/test/java/org/springframework/restdocs/restassured3/RestAssuredRestDocumentationConfigurerTests.java +++ b/spring-restdocs-restassured/src/test/java/org/springframework/restdocs/restassured3/RestAssuredRestDocumentationConfigurerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2019 the original author or authors. + * Copyright 2014-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ import org.springframework.restdocs.snippet.WriterResolver; import org.springframework.restdocs.templates.TemplateEngine; import static org.assertj.core.api.Assertions.assertThat; -import static org.mockito.Matchers.eq; +import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify;