File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
src/test/java/com/google/cloud/opentelemetry/metric Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,19 @@ dependencies {
2727implementation(platform(libraries. opentelemetry_bom))
2828implementation(project(' :shared-resourcemapping' ))
2929implementation(libraries. opentelemetry_semconv)
30- testImplementation(testLibraries. junit)
30+ testImplementation(testLibraries. junit5)
31+ testImplementation(testLibraries. junit5_params)
32+ testRuntimeOnly(testLibraries. junit5_runtime)
3133testImplementation(testLibraries. mockito)
3234testImplementation(testLibraries. slf4j_simple)
3335testImplementation(testLibraries. test_containers)
3436testImplementation(testLibraries. opentelemetry_sdk_testing)
3537testImplementation(testLibraries. opencensus_shim)
3638}
3739
40+ test {
41+ // required for discovering JUnit 5 tests
42+ useJUnitPlatform()
43+ }
44+
3845test. dependsOn ' :shared-resourcemapping:shadowJar'
Original file line number Diff line number Diff line change 1919import static org .junit .Assert .assertFalse ;
2020import static org .junit .Assert .assertNotNull ;
2121import static org .junit .Assert .assertNull ;
22- import static org .junit .Assert .assertThrows ;
2322import static org .junit .Assert .assertTrue ;
23+ import static org .junit .jupiter .api .Assertions .assertThrows ;
2424
2525import com .google .auth .Credentials ;
2626import com .google .auth .oauth2 .AccessToken ;
You can’t perform that action at this time.
0 commit comments