Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SentryMan committed Nov 19, 2023
1 parent 4e51b72 commit a6a8a18
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ public JacksonAdapter build() {
public JacksonAdapter() {
this(false, false, false, new JsonFactory());
}


public JacksonAdapter(JsonFactory factory) {
this(false, false, false, factory);
}

/**
* Create with the given default configuration.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package io.avaje.jsonb.jackson;

import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonLocation;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.StreamReadFeature;

import io.avaje.jsonb.JsonReader;
import io.avaje.jsonb.JsonType;
import io.avaje.jsonb.Jsonb;
Expand All @@ -13,7 +16,12 @@

class UnwrapJacksonParserTest {

Jsonb jsonb = Jsonb.builder().build();
Jsonb jsonb =
Jsonb.builder()
.adapter(
new JacksonAdapter(
new JsonFactory().enable(JsonParser.Feature.INCLUDE_SOURCE_IN_LOCATION)))
.build();

@Test
void unwrap() {
Expand Down

0 comments on commit a6a8a18

Please sign in to comment.