Remove TODOs
This commit is contained in:
@@ -21,12 +21,6 @@ import java.util.Collection;
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.springframework.beans.factory.DisposableBean;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.integration.kafka.core.Partition;
|
||||
import org.springframework.integration.kafka.listener.OffsetManager;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
import rx.Observable;
|
||||
import rx.Subscription;
|
||||
import rx.functions.Action0;
|
||||
@@ -39,6 +33,12 @@ import rx.subjects.PublishSubject;
|
||||
import rx.subjects.SerializedSubject;
|
||||
import rx.subjects.Subject;
|
||||
|
||||
import org.springframework.beans.factory.DisposableBean;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.integration.kafka.core.Partition;
|
||||
import org.springframework.integration.kafka.listener.OffsetManager;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
/**
|
||||
* An {@link OffsetManager} that aggregates writes over a time or count window, using an underlying delegate to
|
||||
* do the actual operations. Its purpose is to reduce the performance impact of writing operations
|
||||
@@ -48,7 +48,6 @@ import rx.subjects.Subject;
|
||||
*
|
||||
* @author Marius Bogoevici
|
||||
*/
|
||||
//TODO: Move this class to spring-integration-kafka
|
||||
public class WindowingOffsetManager implements OffsetManager, InitializingBean, DisposableBean {
|
||||
|
||||
private final CreatePartitionAndOffsetFunction createPartitionAndOffsetFunction = new CreatePartitionAndOffsetFunction();
|
||||
|
||||
@@ -29,6 +29,7 @@ import java.util.concurrent.ArrayBlockingQueue;
|
||||
import java.util.concurrent.BlockingQueue;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import kafka.api.OffsetRequest;
|
||||
import org.junit.ClassRule;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
@@ -47,8 +48,6 @@ import org.springframework.integration.kafka.listener.MessageListener;
|
||||
import org.springframework.messaging.Message;
|
||||
import org.springframework.messaging.MessageChannel;
|
||||
|
||||
import kafka.api.OffsetRequest;
|
||||
|
||||
|
||||
/**
|
||||
* Integration tests for the {@link KafkaMessageChannelBinder}.
|
||||
@@ -312,11 +311,11 @@ public class KafkaBinderTests extends PartitionCapableBinderTests {
|
||||
binder.unbindConsumers("foo" + uniqueBindingId + ".0");
|
||||
}
|
||||
|
||||
@Override @Ignore // TODO
|
||||
@Override @Ignore("https://github.com/spring-cloud/spring-cloud-stream/issues/243")
|
||||
public void testSendAndReceivePubSub() throws Exception {
|
||||
}
|
||||
|
||||
@Override @Ignore // TODO
|
||||
@Override @Ignore("https://github.com/spring-cloud/spring-cloud-stream/issues/243")
|
||||
public void createInboundPubSubBeforeOutboundPubSub() throws Exception {
|
||||
}
|
||||
|
||||
|
||||
@@ -18,6 +18,9 @@ package org.springframework.cloud.stream.binder.kafka;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.esotericsoftware.kryo.Kryo;
|
||||
import com.esotericsoftware.kryo.Registration;
|
||||
|
||||
import org.springframework.cloud.stream.binder.AbstractTestBinder;
|
||||
import org.springframework.cloud.stream.test.junit.kafka.KafkaTestSupport;
|
||||
import org.springframework.cloud.stream.test.junit.kafka.TestKafkaCluster;
|
||||
@@ -28,9 +31,6 @@ import org.springframework.integration.codec.kryo.PojoCodec;
|
||||
import org.springframework.integration.kafka.support.ZookeeperConnect;
|
||||
import org.springframework.xd.tuple.serializer.kryo.TupleKryoRegistrar;
|
||||
|
||||
import com.esotericsoftware.kryo.Kryo;
|
||||
import com.esotericsoftware.kryo.Registration;
|
||||
|
||||
|
||||
/**
|
||||
* Test support class for {@link KafkaMessageChannelBinder}.
|
||||
@@ -79,7 +79,6 @@ public class KafkaTestBinder extends AbstractTestBinder<KafkaMessageChannelBinde
|
||||
return new PojoCodec(new TupleRegistrar());
|
||||
}
|
||||
|
||||
//TODO: temporary wrapper for compatibility with SI Codec types
|
||||
private static class TupleRegistrar implements KryoRegistrar {
|
||||
private final TupleKryoRegistrar delegate = new TupleKryoRegistrar();
|
||||
|
||||
|
||||
@@ -43,7 +43,6 @@ public class ConnectionFactorySettings {
|
||||
private Resource sslPropertiesLocation;
|
||||
|
||||
@Bean
|
||||
// TODO: Move to spring boot
|
||||
public ConnectionFactory rabbitConnectionFactory(RabbitProperties config,
|
||||
com.rabbitmq.client.ConnectionFactory rabbitConnectionFactory) throws Exception {
|
||||
CachingConnectionFactory factory = new CachingConnectionFactory(rabbitConnectionFactory);
|
||||
|
||||
@@ -56,7 +56,6 @@ public class RabbitBindingCleaner implements BindingCleaner {
|
||||
user == null ? "guest" : user,
|
||||
pw == null ? "guest" : pw,
|
||||
vhost == null ? "/" : vhost,
|
||||
//TODO: Change prefix
|
||||
binderPrefix == null ? BINDER_PREFIX : binderPrefix,
|
||||
entity, isJob);
|
||||
}
|
||||
|
||||
@@ -88,10 +88,10 @@ public class RedisBinderTests extends PartitionCapableBinderTests {
|
||||
|
||||
@Override
|
||||
@Test
|
||||
@Ignore // TODO
|
||||
@Ignore("https://github.com/spring-cloud/spring-cloud-stream/issues/247")
|
||||
public void testSendAndReceivePubSub() throws Exception {
|
||||
|
||||
TimeUnit.SECONDS.sleep(2); //TODO remove timing issue
|
||||
//TimeUnit.SECONDS.sleep(2);
|
||||
|
||||
super.testSendAndReceivePubSub();
|
||||
}
|
||||
@@ -352,7 +352,7 @@ public class RedisBinderTests extends PartitionCapableBinderTests {
|
||||
assertTrue(headers.contains("bar"));
|
||||
}
|
||||
|
||||
@Override @Ignore // TODO
|
||||
@Override @Ignore("https://github.com/spring-cloud/spring-cloud-stream/issues/247")
|
||||
public void createInboundPubSubBeforeOutboundPubSub() throws Exception {
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,8 @@ import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
|
||||
import com.esotericsoftware.kryo.Kryo;
|
||||
import com.esotericsoftware.kryo.Registration;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -44,9 +46,6 @@ import org.springframework.xd.tuple.Tuple;
|
||||
import org.springframework.xd.tuple.TupleBuilder;
|
||||
import org.springframework.xd.tuple.serializer.kryo.TupleKryoRegistrar;
|
||||
|
||||
import com.esotericsoftware.kryo.Kryo;
|
||||
import com.esotericsoftware.kryo.Registration;
|
||||
|
||||
/**
|
||||
* @author Gary Russell
|
||||
* @author David Turanski
|
||||
@@ -297,7 +296,6 @@ public class MessageChannelBinderSupportTests {
|
||||
}
|
||||
}
|
||||
|
||||
//TODO: temporary wrapper for compatibility with SI Codec types
|
||||
private static class TupleRegistrar implements KryoRegistrar {
|
||||
private final TupleKryoRegistrar delegate = new TupleKryoRegistrar();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user