use of com.fasterxml.jackson.core.format.DataFormatDetector in project divolte-collector by divolte.
the class MincodeParserSamplesTest method testMincodeFormatDetector.
@Test
public void testMincodeFormatDetector() throws Exception {
final DataFormatDetector detector = new DataFormatDetector(factory);
final DataFormatMatcher format = detector.findFormat(this.sampleMincode.getBytes(StandardCharsets.UTF_8));
assertEquals(factory.getFormatName(), format.getMatchedFormatName());
}
Aggregations