Skip to content

Commit

Permalink
Bump testing library versions (#169)
Browse files Browse the repository at this point in the history
* Bump testing library versions.

* JUnit 5 integration in IDEA is well-implemented now.

* Downgrade Mockito 5.x to 4.x

Caused by: java.lang.UnsupportedClassVersionError: org/mockito/junit/jupiter/MockitoExtension has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
  • Loading branch information
TWiStErRob authored Feb 17, 2023
1 parent ea86f41 commit 9b47d2e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
8 changes: 5 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,13 @@ dependencies {
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
implementation("net.jodah:failsafe:2.4.3")

testImplementation("org.junit.jupiter:junit-jupiter:5.8.1")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
testImplementation("com.github.tomakehurst:wiremock:2.27.2")
testImplementation("ru.lanwen.wiremock:wiremock-junit5:1.3.1")
testImplementation("org.assertj:assertj-core:3.21.0")
testImplementation("org.mockito:mockito-junit-jupiter:4.0.0")
testImplementation("org.assertj:assertj-core:3.24.2")
// This cannot be updated to 5.x as it requires Java 11,
// but we are running CI on Java 8 in .github/workflows/java-versions.yml.
testImplementation("org.mockito:mockito-junit-jupiter:4.11.0")
testImplementation("com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,5 @@ class TaskOrchestrationTest {
return tasks.first()
}

@Suppress("unused")
private fun transitioningTaskNamesForSonatype(): List<String> = listOf("closeSonatypeStagingRepository", "releaseSonatypeStagingRepository")
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ internal class StagingRepositoryTransitionerTest {
inOrder.verify(nexusClient).getStagingRepositoryStateById(TEST_STAGING_REPO_ID)
}

@Suppress("unused") //Idea doesn't noticed @MethodSource usage - https://youtrack.jetbrains.com/issue/KT-21429
private fun repositoryStatesForRelease(): List<StagingRepository.State> {
return listOf(StagingRepository.State.RELEASED, StagingRepository.State.NOT_FOUND)
}
Expand Down

0 comments on commit 9b47d2e

Please sign in to comment.