Skip to content

Instantly share code, notes, and snippets.

@trevorbernard
Created January 22, 2015 02:26
Show Gist options
  • Save trevorbernard/362e4340fec7427133ee to your computer and use it in GitHub Desktop.
Save trevorbernard/362e4340fec7427133ee to your computer and use it in GitHub Desktop.
package io.txb.eventstore;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import rx.Observable;
import rx.Subscriber;
import rx.Subscription;
public class EventStoreTest {
@Test
public void testApp() {
EventStore.Context ctx = new EventStore.Context().address("localhost", 1113);
try (final EventStore store = EventStore.connect(ctx)) {
Observable<Event> orders = store.stream("BTC/CAD");
Subscription subscription = orders.subscribe();
subscription.unsubscribe();
}
assertTrue(true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment