File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
modules/pulsar/src/test/java/org/testcontainers/containers Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,16 @@ public class AbstractPulsar {
2424 protected void testPulsarFunctionality (String pulsarBrokerUrl ) throws Exception {
2525 try (
2626 PulsarClient client = PulsarClient .builder ().serviceUrl (pulsarBrokerUrl ).build ();
27- Consumer consumer = client .newConsumer ().topic (TEST_TOPIC ).subscriptionName ("test-subs" ).subscribe ();
27+ Consumer <byte []> consumer = client
28+ .newConsumer ()
29+ .topic (TEST_TOPIC )
30+ .subscriptionName ("test-subs" )
31+ .subscribe ();
2832 Producer <byte []> producer = client .newProducer ().topic (TEST_TOPIC ).create ()
2933 ) {
3034 producer .send ("test containers" .getBytes ());
31- CompletableFuture <Message > future = consumer .receiveAsync ();
32- Message message = future .get (5 , TimeUnit .SECONDS );
35+ CompletableFuture <Message < byte []> > future = consumer .receiveAsync ();
36+ Message < byte []> message = future .get (5 , TimeUnit .SECONDS );
3337
3438 assertThat (new String (message .getData ())).isEqualTo ("test containers" );
3539 }
You can’t perform that action at this time.
0 commit comments