1 | TestElement createTestElement() {↵ | | 1 | TestElement createTestElement() {↵
|
2 | SwitchController ic = new SwitchController();↵ | | 2 | CacheManager element = new CacheManager();↵
|
3 | modifyTestElement(ic);↵ | | 3 | modifyTestElement(element);↵
|
4 | return ic;↵ | | 4 | return element;↵
|
5 | }↵ | | 5 | }↵
|
|
6 | /**↵ | | 6 | /*↵
|
7 | * Modifies a given TestElement to mirror the data in the gui components.↵ | | |
|
8 | * ↵ | | |
|
9 | * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)↵ | | 7 | Implements JMeterGUIComponent.modifyTestElement(TestElement)↵
|
10 | */↵ | | 8 | */↵
|
11 | public void modifyTestElement(TestElement ic) {↵ | | 9 | public void modifyTestElement(TestElement element) {↵
|
12 | configureTestElement(ic);↵ | | 10 | configureTestElement(element);↵
|
13 | ((SwitchController) ic).setSelection(switchValue.getText());↵ | | 11 | ((CacheManager)element).setClearEachIteration(clearEachIteration.isSelected());↵
|
14 | | | 12 |
|