@Override public void modifyTestElement(TestElement element) { super.modifyTestElement(element); AbstractNewDirectOrder sampler = (AbstractNewDirectOrder) element; configureTestElement(sampler); sampler.setRequestQueue(requestQueue.getText()); sampler.setResponseQueue(responseQueue.getText()); sampler.setStockCode(stockCode.getText()); sampler.setOrderQty(orderQty.getText()); sampler.setOrderPrice(orderPrice.getText()); sampler.setBoard(board.getText()); sampler.setInvestorType(investorType.getText()); sampler.setTimeInForce(timeInForce.getText()); sampler.setClientCode(clientCode.getText()); sampler.setBuySell(buySell.getText()); sampler.setOrderPeriod(orderPeriod.getText()); }
@Override public void configure(TestElement element) { super.configure(element); if (!(element instanceof AbstractNewDirectOrder)) return; AbstractNewDirectOrder sampler = (AbstractNewDirectOrder) element; requestQueue.setText(sampler.getRequestQueue()); responseQueue.setText(sampler.getResponseQueue()); stockCode.setText(sampler.getStockCode()); orderQty.setText(sampler.getOrderQty()); orderPrice.setText(sampler.getOrderPrice()); board.setText(sampler.getBoard()); investorType.setText(sampler.getInvestorType()); timeInForce.setText(sampler.getTimeInForce()); clientCode.setText(sampler.getClientCode()); buySell.setText(sampler.getBuySell()); orderPeriod.setText(sampler.getOrderPeriod()); }