Skip to content

Commit

Permalink
Test fixes wrt #3406
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 30, 2025
1 parent 6c92858 commit b672adf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void testUnknownClassAsSubtype() throws Exception
ObjectReader reader = MAPPER.readerFor(BaseUnknownWrapper.class)
.without(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE);
BaseUnknownWrapper w = reader.readValue(a2q
("{'value':{'clazz':'com.foobar.Nothing'}}'"));
("{'value':{'clazz':'com.foobar.Nothing'}}"));
assertNotNull(w);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public void testUnknownClassAsSubtype() throws Exception
ObjectMapper mapper = new ObjectMapper();
mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, false);
BaseWrapper w = mapper.readValue(a2q
("{'value':{'clazz':'com.foobar.Nothing'}}'"),
("{'value':{'clazz':'com.foobar.Nothing'}}"),
BaseWrapper.class);
assertNotNull(w);
assertNull(w.value);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.fasterxml.jackson.databind.misc;

import java.io.*;
import java.io.IOException;


import org.junit.jupiter.api.Test;
Expand All @@ -25,7 +25,7 @@ public class TestBlocking
* quite yet.
*/
@Test
public void testEagerAdvance() throws IOException
public void testEagerAdvance() throws Exception
{
ObjectMapper mapper = new ObjectMapper();
JsonParser jp = createParserUsingReader("[ 1 ");
Expand Down

0 comments on commit b672adf

Please sign in to comment.