Search in sources :

Example 1 with ByteArrayConverter

use of org.apache.kafka.connect.converters.ByteArrayConverter in project kafka-connect-storage-cloud by confluentinc.

the class DataWriterByteArrayTest method setUp.

// @Before should be omitted in order to be able to add properties per test.
public void setUp() throws Exception {
    super.setUp();
    converter = new ByteArrayConverter();
    s3 = newS3Client(connectorConfig);
    storage = new S3Storage(connectorConfig, url, S3_TEST_BUCKET_NAME, s3);
    partitioner = new DefaultPartitioner<>();
    partitioner.configure(parsedConfig);
    format = new ByteArrayFormat(storage);
    s3.createBucket(S3_TEST_BUCKET_NAME);
    assertTrue(s3.doesBucketExist(S3_TEST_BUCKET_NAME));
}
Also used : ByteArrayConverter(org.apache.kafka.connect.converters.ByteArrayConverter) ByteArrayFormat(io.confluent.connect.s3.format.bytearray.ByteArrayFormat) S3Storage(io.confluent.connect.s3.storage.S3Storage)

Aggregations

ByteArrayFormat (io.confluent.connect.s3.format.bytearray.ByteArrayFormat)1 S3Storage (io.confluent.connect.s3.storage.S3Storage)1 ByteArrayConverter (org.apache.kafka.connect.converters.ByteArrayConverter)1