Skip to content

Commit

Permalink
Test only - CustomAdapterTest to use JsonStream in builder
Browse files Browse the repository at this point in the history
  • Loading branch information
rbygrave committed Dec 16, 2024
1 parent 3e3e12b commit 0065b50
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import io.avaje.json.JsonAdapter;
import io.avaje.json.JsonReader;
import io.avaje.json.JsonWriter;
import io.avaje.json.stream.JsonStream;
import org.junit.jupiter.api.Test;

import java.util.List;
Expand All @@ -13,7 +14,8 @@

class CustomAdapterTest {

static final SimpleMapper simpleMapper = SimpleMapper.builder().build();
static final JsonStream jsonStream = JsonStream.builder().build();
static final SimpleMapper simpleMapper = SimpleMapper.builder().jsonStream(jsonStream).build();
static final MyAdapter myAdapter = new MyAdapter(simpleMapper);
static final SimpleMapper.Type<MyCustomType> type = simpleMapper.type(myAdapter);

Expand Down

0 comments on commit 0065b50

Please sign in to comment.