Skip to content

Commit 452617d

Browse files
committed
Test fixes wrt #3406
1 parent 33cf355 commit 452617d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/test/java/com/fasterxml/jackson/databind/jsontype/PolymorphicDeserErrorHandlingTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void testUnknownClassAsSubtype() throws Exception
5454
ObjectReader reader = MAPPER.readerFor(BaseUnknownWrapper.class)
5555
.without(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE);
5656
BaseUnknownWrapper w = reader.readValue(a2q
57-
("{'value':{'clazz':'com.foobar.Nothing'}}'"));
57+
("{'value':{'clazz':'com.foobar.Nothing'}}"));
5858
assertNotNull(w);
5959
}
6060

src/test/java/com/fasterxml/jackson/databind/jsontype/TestPolymorphicWithDefaultImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public void testUnknownClassAsSubtype() throws Exception
268268
ObjectMapper mapper = new ObjectMapper();
269269
mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, false);
270270
BaseWrapper w = mapper.readValue(a2q
271-
("{'value':{'clazz':'com.foobar.Nothing'}}'"),
271+
("{'value':{'clazz':'com.foobar.Nothing'}}"),
272272
BaseWrapper.class);
273273
assertNotNull(w);
274274
assertNull(w.value);

src/test/java/com/fasterxml/jackson/databind/misc/TestBlocking.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.fasterxml.jackson.databind.misc;
22

3-
import java.io.*;
3+
import java.io.IOException;
44

55
import org.junit.jupiter.api.Test;
66

@@ -24,7 +24,7 @@ public class TestBlocking
2424
* quite yet.
2525
*/
2626
@Test
27-
public void testEagerAdvance() throws IOException
27+
public void testEagerAdvance() throws Exception
2828
{
2929
ObjectMapper mapper = jsonMapperBuilder()
3030
.disable(DeserializationFeature.FAIL_ON_TRAILING_TOKENS)

0 commit comments

Comments
 (0)