package com.taobao.meta.test; import org.junit.Test; /** * meta���ɲ���_TenProducerOneConsumeTwoBroker * * @author gongyangyu(gongyangyu@taobao.com) * */ public class TenProducerOneConsumeTwoBrokerTest extends BaseMetaTest { private final String topic = "meta-test"; @Test public void sendConsume() throws Exception { this.startServer("server2"); create_nProducer(10); // ��Ҫ����topic // �����߱���ָ������ createConsumer("group1"); try { // ������Ϣ final int count = 5; sendMessage_nProducer(count, "hello", this.topic, 10); // ���Ľ�����Ϣ����֤������ȷ subscribe(this.topic, 1024 * 1024, 50); } finally { for (int i = 0; i < 10; i++) { producerList.get(i).shutdown(); } consumer.shutdown(); } } }