public GetBrokerInfo ( int brokerId ) : |
||
brokerId | int | The broker ID. |
리턴 |
public void BrokerPartitionInfoGetPartitionInfoReturnsNullOnNonexistingBrokerId() { IBrokerPartitionInfo brokerPartitionInfo = new ConfigBrokerPartitionInfo(config); var broker = brokerPartitionInfo.GetBrokerInfo(45); Assert.IsNull(broker); }
public void BrokerPartitionInfoGetPartitionInfo() { IBrokerPartitionInfo brokerPartitionInfo = new ConfigBrokerPartitionInfo(config); var broker = brokerPartitionInfo.GetBrokerInfo(1); this.MakeAssertionsForBroker(broker, 1, "192.168.0.1", 1234); }