Search in sources :

Example 6 with LookupData

use of com.yahoo.pulsar.common.lookup.data.LookupData in project pulsar by yahoo.

the class LookupDataTest method withConstructor.

@Test
void withConstructor() {
    LookupData data = new LookupData("pulsar://localhost:8888", "pulsar://localhost:8884", "http://localhost:8080", "http://localhost:8081");
    assertEquals(data.getBrokerUrl(), "pulsar://localhost:8888");
    assertEquals(data.getHttpUrl(), "http://localhost:8080");
}
Also used : LookupData(com.yahoo.pulsar.common.lookup.data.LookupData) Test(org.testng.annotations.Test)

Aggregations

LookupData (com.yahoo.pulsar.common.lookup.data.LookupData)6 Test (org.testng.annotations.Test)3 URI (java.net.URI)2 CompletableFuture (java.util.concurrent.CompletableFuture)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 Preconditions.checkNotNull (com.google.common.base.Preconditions.checkNotNull)1 PulsarServerException (com.yahoo.pulsar.broker.PulsarServerException)1 PulsarService (com.yahoo.pulsar.broker.PulsarService)1 MockedPulsarServiceBaseTest (com.yahoo.pulsar.broker.auth.MockedPulsarServiceBaseTest)1 ServiceUnitNotReadyException (com.yahoo.pulsar.broker.service.BrokerServiceException.ServiceUnitNotReadyException)1 NoSwaggerDocumentation (com.yahoo.pulsar.broker.web.NoSwaggerDocumentation)1 PulsarWebResource (com.yahoo.pulsar.broker.web.PulsarWebResource)1 RestException (com.yahoo.pulsar.broker.web.RestException)1 LookupImpl (com.yahoo.pulsar.client.admin.internal.LookupImpl)1 PersistentTopicsImpl (com.yahoo.pulsar.client.admin.internal.PersistentTopicsImpl)1 Consumer (com.yahoo.pulsar.client.api.Consumer)1 ConsumerConfiguration (com.yahoo.pulsar.client.api.ConsumerConfiguration)1 PulsarClientException (com.yahoo.pulsar.client.api.PulsarClientException)1 Commands.newLookupResponse (com.yahoo.pulsar.common.api.Commands.newLookupResponse)1 LookupType (com.yahoo.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.LookupType)1