File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed
Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ Classpath Replacer can help you simulate this scenario in your unit tests.
3434Gradle:
3535
3636``` groovy
37- testImplementation 'com.freemanan:classpath-replacer-junit5:1.2 .0'
37+ testImplementation 'com.freemanan:classpath-replacer-junit5:2.0 .0'
3838```
3939
4040Maven:
4444<dependency >
4545 <groupId >com.freemanan</groupId >
4646 <artifactId >classpath-replacer-junit5</artifactId >
47- <version >1.2 .0</version >
47+ <version >2.0 .0</version >
4848 <scope >test</scope >
4949</dependency >
5050```
@@ -151,22 +151,6 @@ class JsonUtilTest {
151151 void useJacksonFirst_whenBothJacksonAndGsonOnClasspath () {
152152 assertTrue(JsonUtil . instance() instanceof Jackson );
153153 }
154-
155- @Test
156- @ClasspathReplacer ({@Action (verb = ADD , value = " com.google.code.gson:gson:2.8.9" )})
157- void gsonHasBugOn2_8_9_whenEmptyList () {
158- assertThrows(InaccessibleObjectException . class, () - > {
159- JsonUtil . toJson(Collections . emptyList());
160- });
161- }
162-
163- @Test
164- @ClasspathReplacer ({@Action (verb = ADD , value = " com.google.code.gson:gson:2.9.0" )})
165- void gsonWorksFineOn2_9_0_whenEmptyList () {
166- assertDoesNotThrow(() - > {
167- JsonUtil . toJson(Collections . emptyList());
168- });
169- }
170154}
171155```
172156
You can’t perform that action at this time.
0 commit comments