1 18 19 package org.apache.jmeter.assertions.gui; 20 21 import org.apache.jmeter.assertions.XMLAssertion; 22 import org.apache.jmeter.testelement.TestElement; 23 import org.apache.jorphan.gui.layout.VerticalLayout; 24 25 26 29 public class XMLAssertionGui extends AbstractAssertionGui 30 { 31 34 public XMLAssertionGui() 35 { 36 init(); 37 } 38 39 42 public String getLabelResource() 43 { 44 return "xml_assertion_title"; 45 } 46 47 public TestElement createTestElement() 48 { 49 XMLAssertion el = new XMLAssertion(); 50 modifyTestElement(el); 51 return el; 52 } 53 54 59 public void modifyTestElement(TestElement el) 60 { 61 configureTestElement(el); 62 } 63 64 68 public void configure(TestElement el) 69 { 70 super.configure(el); 71 } 72 73 74 77 private void init() 78 { 79 setLayout( 80 new VerticalLayout(5, VerticalLayout.LEFT, VerticalLayout.TOP)); 81 setBorder(makeBorder()); 82 83 add(makeTitlePanel()); 84 } 85 } 86 | Popular Tags |