Skip to content

Commit 1f0756d

Browse files
committed
try to fix odd CI test fail
1 parent 8ae3b8f commit 1f0756d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/java/com/fasterxml/jackson/databind/BaseMapTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,13 +280,13 @@ protected String serializeAsString(ObjectMapper m, Object value)
280280
protected String serializeAsString(Object value)
281281
throws IOException
282282
{
283-
return serializeAsString(SHARED_MAPPER, value);
283+
return serializeAsString(objectMapper(), value);
284284
}
285285

286286
protected String asJSONObjectValueString(Object... args)
287287
throws IOException
288288
{
289-
return asJSONObjectValueString(SHARED_MAPPER, args);
289+
return asJSONObjectValueString(objectMapper(), args);
290290
}
291291

292292
protected String asJSONObjectValueString(ObjectMapper m, Object... args)
@@ -308,7 +308,7 @@ protected String asJSONObjectValueString(ObjectMapper m, Object... args)
308308
protected <T> T readAndMapFromString(String input, Class<T> cls)
309309
throws IOException
310310
{
311-
return readAndMapFromString(SHARED_MAPPER, input, cls);
311+
return readAndMapFromString(objectMapper(), input, cls);
312312
}
313313

314314
protected <T> T readAndMapFromString(ObjectMapper m, String input, Class<T> cls) throws IOException

src/test/java/com/fasterxml/jackson/databind/views/TestViewSerialization.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public void testDefaultExclusion() throws IOException
159159
*/
160160
public void testImplicitAutoDetection() throws Exception
161161
{
162-
assertEquals("{\"a\":1}", serializeAsString(new ImplicitBean()));
162+
assertEquals("{\"a\":1}", objectMapper().writeValueAsString(new ImplicitBean()));
163163
}
164164

165165
public void testVisibility() throws Exception

0 commit comments

Comments
 (0)