APISonar


io.confluent.ksql.rest.server.resources.streaming.TopicStream.Format.JSON

> io > confluent > ksql > rest > server > resources > streaming > TopicStream > Format > JSON
io APIs confluent APIs ksql APIs rest APIs server APIs resources APIs streaming APIs TopicStream APIs Format APIs JSON APIs

Example 1
public void shouldNotMatchJsonFormatter() {
    // Given:
    replay(schemaRegistryClient);

    final String notJson =
        "{  BAD DATA  \"name\": \"myrecord\"," +
        "    \"type\": \"record\"" +
        "}";

    // When:
    final Result result = getFormattedResult(notJson);

    // Then:
    assertThat(result.format, is(not(Format.JSON)));
  }