Skip to content

Commit

Permalink
Reproduce failure in issue #6
Browse files Browse the repository at this point in the history
  • Loading branch information
mdewilde committed Nov 14, 2017
1 parent d1d348d commit 99dc112
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/java/be/ceau/chart/tests/DeserializeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@

import org.junit.Test;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectReader;

import be.ceau.chart.BarChart;

public class DeserializeTest {

@Test
Expand All @@ -15,7 +20,9 @@ public void deserialize() {
String text = scanner.useDelimiter("\\A").next();
scanner.close();

ObjectReader reader = new ObjectMapper().readerFor(BarChart.class);

BarChart barChart = reader.readValue(text);

} catch (IOException e) {
e.printStackTrace();
Expand Down

0 comments on commit 99dc112

Please sign in to comment.