Skip to content

Commit

Permalink
Updated mockito
Browse files Browse the repository at this point in the history
  • Loading branch information
boginw committed Jan 23, 2024
1 parent aede385 commit c631259
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ dependencies {
testImplementation platform("org.junit:junit-bom:5.10.1")
testImplementation "org.junit.jupiter:junit-jupiter-api"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
testImplementation 'org.mockito:mockito-core:4.11.0'
testImplementation 'org.mockito:mockito-core:5.9.0'
}

tasks.withType(Test).configureEach {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;

import javax.annotation.OverridingMethodsMustInvokeSuper;
Expand Down Expand Up @@ -92,7 +93,7 @@ void whenOutputProvidedAndTaskIsRun_expectPrintStreamToBeSetOnCommand()
@Test
void whenTaskIsRun_expectCommandToBeRun() {
task.run();
verify(command).execute(any());
verify(command).execute(any(String[].class));
}

@Test
Expand Down

0 comments on commit c631259

Please sign in to comment.