@Override public void modifyTestElement(TestElement te) { TradingIdea sampler = (TradingIdea) te; sampler.clear(); configureTestElement(sampler); super.modifyTestElement(sampler); sampler.setHeaders((Arguments) headers.createTestElement()); }
private void configureHeaders(TradingIdea sampler) { Arguments sampleHeaders = sampler.getHeaders(); if (sampleHeaders != null) { headers.configure(sampleHeaders); } else { headers.clearGui(); } }