Skip to content

Commit

Permalink
minor test refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jun 12, 2020
1 parent 6f7e951 commit c0a8928
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.annotation.JacksonStdImpl;
import com.fasterxml.jackson.databind.cfg.CoercionAction;
import com.fasterxml.jackson.databind.cfg.CoercionInputShape;
import com.fasterxml.jackson.databind.deser.ContextualDeserializer;
import com.fasterxml.jackson.databind.type.LogicalType;
import com.fasterxml.jackson.databind.util.ClassUtil;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static class EnclosingForRefWithNoCreator {
/*****************************************************
*/

private final ObjectMapper MAPPER = objectMapper();
private final ObjectMapper MAPPER = newJsonMapper();

// for [databind#687]
public void testSerializeDeserializeWithCreator() throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,15 @@ static class V extends AbstractData {
private static final long serialVersionUID = 1L;
}

/*
/*****************************************************
/* Test methods
/*****************************************************
*/

public void testFull825() throws Exception
{
final ObjectMapper mapper = jsonMapperBuilder()
.enable(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT)
.activateDefaultTyping(NoCheckSubTypeValidator.instance,
ObjectMapper.DefaultTyping.OBJECT_AND_NON_CONCRETE)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
public class TestArraySerialization
extends BaseMapTest
{
private final ObjectMapper MAPPER = newJsonMapper();
private final ObjectMapper MAPPER = sharedMapper();

public void testLongStringArray() throws Exception
{
Expand Down

0 comments on commit c0a8928

Please sign in to comment.