Skip to content

Commit

Permalink
chore(deps): update dependency org.mockito:mockito-core to v5 (#1433)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency org.mockito:mockito-core to v5

* Use type on ArgumentMatcher for varargs

https://github.com/mockito/mockito/wiki/Draft-Mockito-5-release-notes#what-is-the-effect-of-this-new-method
  • Loading branch information
ggrossetie authored Aug 21, 2023
1 parent 729318b commit f14d1cc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<vertx.version>4.4.4</vertx.version>
<junit.jupiter.version>5.9.3</junit.jupiter.version>
<assertj-core.version>3.24.2</assertj-core.version>
<mockito-core.version>4.11.0</mockito-core.version>
<mockito-core.version>5.4.0</mockito-core.version>
<slf4j-api.version>2.0.7</slf4j-api.version>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class GraphVizServiceTest {
public void should_call_graphviz_with_correct_arguments() throws Throwable {
Vertx vertx = Vertx.vertx();
Commander commanderMock = mock(Commander.class);
when(commanderMock.execute(any(), any())).thenReturn("<svg>graphviz</svg>".getBytes());
when(commanderMock.execute(any(), any(String[].class))).thenReturn("<svg>graphviz</svg>".getBytes());
HashMap<String, Object> config = new HashMap<>();
config.put("KROKI_SAFE_MODE", "unsafe");
config.put("KROKI_DOT_BIN_PATH", "/path/to/dot");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class PikchrServiceTest {
public void should_call_pikchr_with_correct_arguments() throws Throwable {
Vertx vertx = Vertx.vertx();
Commander commanderMock = mock(Commander.class);
when(commanderMock.execute(any(), any())).thenReturn("<svg>pikchr</svg>".getBytes());
when(commanderMock.execute(any(), any(String[].class))).thenReturn("<svg>pikchr</svg>".getBytes());
HashMap<String, Object> config = new HashMap<>();
config.put("KROKI_SAFE_MODE", "unsafe");
config.put("KROKI_PIKCHR_BIN_PATH", "/path/to/pikchr");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class VegaServiceTest {
public void should_call_vega_with_correct_arguments() throws Throwable {
Vertx vertx = Vertx.vertx();
Commander commanderMock = mock(Commander.class);
when(commanderMock.execute(any(), any())).thenReturn("<svg>vega</svg>".getBytes());
when(commanderMock.execute(any(), any(String[].class))).thenReturn("<svg>vega</svg>".getBytes());
HashMap<String, Object> config = new HashMap<>();
config.put("KROKI_SAFE_MODE", "unsafe");
config.put("KROKI_VEGA_BIN_PATH", "/path/to/vega");
Expand All @@ -45,7 +45,7 @@ public void should_call_vega_with_correct_arguments() throws Throwable {
public void should_call_vega_lite_with_correct_arguments() throws Throwable {
Vertx vertx = Vertx.vertx();
Commander commanderMock = mock(Commander.class);
when(commanderMock.execute(any(), any())).thenReturn("<svg>vega-lite</svg>".getBytes());
when(commanderMock.execute(any(), any(String[].class))).thenReturn("<svg>vega-lite</svg>".getBytes());
HashMap<String, Object> config = new HashMap<>();
config.put("KROKI_SAFE_MODE", "unsafe");
config.put("KROKI_VEGA_BIN_PATH", "/path/to/vega");
Expand Down

0 comments on commit f14d1cc

Please sign in to comment.