### Question:
FabricTopicAdmin implements IEventTopic { @Override public ListPage<TbTransHash> queryTransList(QueryEntity queryEntity) throws BrokerException { validateChannelName(queryEntity.getGroupId()); ParamCheckUtils.validatePagIndexAndSize(queryEntity.getPageNumber(), queryEntity.getPageSize()); return fabricDelegate.getFabricMap().get(queryEntity.getGroupId()) .queryTransList(queryEntity.getBlockNumber(), queryEntity.getPkHash(), queryEntity.getPageNumber(), queryEntity.getPageSize()); } FabricTopicAdmin(FabricDelegate fabricDelegate); @Override boolean open(String topic, String channelName); @Override boolean close(String topic, String channelName); @Override WeEvent getEvent(String eventId, String channelName); @Override boolean exist(String topic, String channelName); @Override TopicPage list(Integer pageIndex, Integer pageSize, String channelName); @Override TopicInfo state(String topic, String channelName); @Override List<String> listGroupId(); @Override Long getBlockHeight(String channelName); @Override GroupGeneral getGroupGeneral(String channelName); @Override ListPage<TbTransHash> queryTransList(QueryEntity queryEntity); @Override ListPage<TbBlock> queryBlockList(QueryEntity queryEntity); @Override ListPage<TbNode> queryNodeList(QueryEntity queryEntity); @Override ContractContext getContractContext(String groupId); @Override boolean addOperator(String groupId, String topicName, String address); @Override boolean delOperator(String groupId, String topicName, String address); @Override List<String> listOperator(String groupId, String topicName); @Override void validateGroupId(String channelName);  }### Answer:
@Test public void queryTransList() throws BrokerException { this.queryEntity = new QueryEntity(); queryEntity.setGroupId(this.channelName); queryEntity.setPageSize(10); queryEntity.setPageNumber(1); queryEntity.setBlockNumber(new BigInteger("10")); ListPage<TbTransHash> tbTransHashes = this.iProducer.queryTransList(queryEntity); Assert.assertNotNull(tbTransHashes); Assert.assertTrue(tbTransHashes.getTotal() > 0); }
@Test public void queryTransListTranHash() throws BrokerException { this.queryEntity = new QueryEntity(); queryEntity.setGroupId(this.channelName); queryEntity.setBlockNumber(blockNumber); queryEntity.setPageSize(10); queryEntity.setPageNumber(1); ListPage<TbTransHash> tbTransHashes = this.iProducer.queryTransList(queryEntity); Assert.assertNotNull(tbTransHashes); queryEntity.setBlockNumber(null); queryEntity.setPkHash(tbTransHashes.getPageData().get(0).getTransHash()); tbTransHashes = this.iProducer.queryTransList(queryEntity); Assert.assertNotNull(tbTransHashes); Assert.assertTrue(tbTransHashes.getTotal() > 0); }
@Test public void queryTransListTranHash1() throws BrokerException { this.queryEntity = new QueryEntity(); queryEntity.setGroupId(this.channelName); queryEntity.setPageSize(10); queryEntity.setPageNumber(1); ListPage<TbTransHash> tbTransHashes = this.iProducer.queryTransList(queryEntity); Assert.assertNotNull(tbTransHashes); }