You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2019/01/18 09:37:41 UTC

[incubator-plc4x] branch develop updated: - Added a annotation to prevent Mockito unnecessary-stubbing exceptions

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new c32afe3  - Added a annotation to prevent Mockito unnecessary-stubbing exceptions
c32afe3 is described below

commit c32afe34ab3dc5c694a188ef077dc46893b865ad
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Fri Jan 18 10:37:38 2019 +0100

    - Added a annotation to prevent Mockito unnecessary-stubbing exceptions
---
 .../src/test/java/org/apache/plc4x/java/scraper/ScraperTest.java       | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/plc4j/utils/scraper/src/test/java/org/apache/plc4x/java/scraper/ScraperTest.java b/plc4j/utils/scraper/src/test/java/org/apache/plc4x/java/scraper/ScraperTest.java
index 40637d2..e41a48e 100644
--- a/plc4j/utils/scraper/src/test/java/org/apache/plc4x/java/scraper/ScraperTest.java
+++ b/plc4j/utils/scraper/src/test/java/org/apache/plc4x/java/scraper/ScraperTest.java
@@ -36,6 +36,8 @@ import org.junit.jupiter.api.Test;
 import org.junit.jupiter.api.extension.ExtendWith;
 import org.mockito.Mock;
 import org.mockito.junit.jupiter.MockitoExtension;
+import org.mockito.junit.jupiter.MockitoSettings;
+import org.mockito.quality.Strictness;
 
 import java.util.Arrays;
 import java.util.Collections;
@@ -45,6 +47,7 @@ import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.when;
 
 @ExtendWith(MockitoExtension.class)
+@MockitoSettings(strictness = Strictness.LENIENT)
 class ScraperTest implements WithAssertions {
 
     @Mock