### Question:
PartitionExt extends Partition { public void setPullTempData(int reqProcType, int errCode, boolean isEscLimit, int msgSize, long limitDlt, long curDataDlt, boolean isRequireSlow) { this.lastRptTIme = System.currentTimeMillis(); this.reqProcType = reqProcType; this.errCode = errCode; this.isEscLimit = isEscLimit; this.msgSize = msgSize; this.limitDlt = limitDlt; this.curDataDlt = curDataDlt; this.isRequireSlow = isRequireSlow; } PartitionExt(final FlowCtrlRuleHandler groupFlowCtrlRuleHandler,
                        final FlowCtrlRuleHandler defFlowCtrlRuleHandler,
                        final BrokerInfo broker, final String topic, final int partitionId); long procConsumeResult(boolean isFilterConsume); long procConsumeResult(boolean isFilterConsume, int reqProcType, int errCode,
                                  int msgSize, boolean isReqEscLimit, long rsplimitDlt,
                                  long lastDataDlt, boolean isRRequireSlow); long getCurDataDlt(); FlowCtrlResult getCurFlowCtrlVal(); long getRecvMsgInMin(); long getLimitMsgInSec(); long getLastRptTIme(); int getReqProcType(); int getErrCode(); boolean isEscLimit(); int getMsgSize(); long getLimitDlt(); boolean isLastPackConsumed(); void setLastPackConsumed(boolean lastPackConsumed); boolean getAndResetLastPackConsumed(); void setPullTempData(int reqProcType, int errCode,
                                boolean isEscLimit, int msgSize,
                                long limitDlt, long curDataDlt,
                                boolean isRequireSlow); void clearPullTempData(); long getNextLimitUpdateTime(); void setNextLimitUpdateTime(long nextLimitUpdateTime); long getCurAllowedMsgSize(); void setCurAllowedMsgSize(int curAllowedMsgSize); long getNextStatTime(); void setNextStatTime(long nextStatTime); long getLastGetTime(); void setLastGetTime(long lastGetTime); int getRecvMsgSize(); void setRecvMsgSize(int recvMsgSize); long getLastDataRdDlt(); void setLastDataRdDlt(long lastDataRdDlt); int getTotalRcvZeroCount(); void setTotalRcvZeroCount(int totalRcvZeroCount);  }### Answer:
@Test public void testPartitionExtSuccess() { FlowCtrlRuleHandler groupFlowCtrlRuleHandler = new FlowCtrlRuleHandler(false); FlowCtrlRuleHandler defFlowCtrlRuleHandler = new FlowCtrlRuleHandler(true); PartitionExt partition = new PartitionExt( groupFlowCtrlRuleHandler, defFlowCtrlRuleHandler, new BrokerInfo(1, "192.168.1.1", 18080), "test", 1); int limitDlt = 4096; partition.setPullTempData(0, 200, false, 1024, limitDlt, 10, false); partition.setPullTempData(0, 200, true, 1024, limitDlt, 10, false); }
@Test public void testPartitionExtError() { FlowCtrlRuleHandler groupFlowCtrlRuleHandler = new FlowCtrlRuleHandler(false); FlowCtrlRuleHandler defFlowCtrlRuleHandler = new FlowCtrlRuleHandler(true); PartitionExt partition = new PartitionExt( groupFlowCtrlRuleHandler, defFlowCtrlRuleHandler, new BrokerInfo(1, "192.168.1.1", 18080), "test", 1); int limitDlt = 4096; partition.setPullTempData(0, 0, false, 1024, 4096, 10, false); partition.setPullTempData(0, 404, false, 0, 4096, 10, false); }