use of co.cask.cdap.client.StreamWriter in project cdap-ingest by caskdata.
the class RestStreamClientTest method testCreateWriter.
@Test
public void testCreateWriter() throws IOException {
StreamWriter streamWriter = streamClient.createWriter(TestUtils.SUCCESS_STREAM_NAME);
assertNotNull(streamWriter);
assertEquals(RestStreamWriter.class, streamWriter.getClass());
RestStreamWriter restStreamWriter = (RestStreamWriter) streamWriter;
assertEquals(TestUtils.SUCCESS_STREAM_NAME, restStreamWriter.getStreamName());
}
Aggregations