1
0
mirror of https://github.com/google/nomulus synced 2026-01-07 14:05:44 +00:00

Allow backwards compatibility with JUnit 4 @Rules in JUnit 5 (#526)

* Allow backwards compatibility with JUnit 4 @Rules in JUnit 5

This allows us to defer having to re-implement all of our JUnit 4 Rules as JUnit
5 extensions for now, while continuing to in-place upgrade all existing JUnit 4
test classes to JUnit 5.

As proof of concept, this upgrades PremiumListUtils (which uses AppEngineRule,
our largest and most complicated @Rule) to use the JUnit 5 test runner.

* Apply formatter to entire file
This commit is contained in:
Ben McIlwain
2020-03-23 14:45:54 -04:00
committed by GitHub
parent ad06f265a5
commit fe760d7066
54 changed files with 889 additions and 786 deletions

View File

@@ -303,6 +303,7 @@ dependencies {
testCompile deps['junit:junit']
testCompile deps['org.junit.jupiter:junit-jupiter-api']
testCompile deps['org.junit.jupiter:junit-jupiter-engine']
testCompile deps['org.junit.jupiter:junit-jupiter-migrationsupport']
testCompile deps['org.junit.vintage:junit-vintage-engine']
testCompile deps['org.mockito:mockito-core']
runtime deps['org.postgresql:postgresql']