Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency org.mockito:mockito-core to v5 #1433

Merged
merged 2 commits into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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