Created
January 22, 2015 02:26
-
-
Save trevorbernard/362e4340fec7427133ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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