From f4ee7dd541986172f1fbbb5c22c0a8340fec53cf Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 8 May 2019 12:00:12 +0200 Subject: [PATCH] Update PowerMock to 2.0.2 and set Mockito 2's mock-maker-inline as MockMaker to allow mocking of final classes. --- build.gradle | 2 +- .../resources/mockito-extensions/org.mockito.plugins.MockMaker | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 smack-extensions/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker diff --git a/build.gradle b/build.gradle index 8d80bd574..e1cc2c5f2 100644 --- a/build.gradle +++ b/build.gradle @@ -130,7 +130,7 @@ allprojects { ':smack-openpgp', ].collect { project(it) } junitVersion = '5.4.2' - powerMockVersion = '1.7.3' + powerMockVersion = '2.0.2' } group = 'org.igniterealtime.smack' sourceCompatibility = JavaVersion.VERSION_1_8 diff --git a/smack-extensions/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker b/smack-extensions/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker new file mode 100644 index 000000000..1f0955d45 --- /dev/null +++ b/smack-extensions/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker @@ -0,0 +1 @@ +mock-maker-inline