@Test public void testModifyTestElement() { System.out.println("modifyTestElement"); TestElement element = new JSONPathAssertion(); JSONPathAssertionGui instance = new JSONPathAssertionGui(); instance.modifyTestElement(element); }
@Override public void modifyTestElement(TestElement element) { super.configureTestElement(element); if (element instanceof JSONPathAssertion) { JSONPathAssertion jpAssertion = (JSONPathAssertion) element; jpAssertion.setJsonPath(jsonPath.getText()); jpAssertion.setExpectedValue(jsonValue.getText()); jpAssertion.setJsonValidationBool(jsonValidation.isSelected()); jpAssertion.setExpectNull(expectNull.isSelected()); jpAssertion.setInvert(invert.isSelected()); jpAssertion.setIsRegex(isRegex.isSelected()); if (inputFormatGroup.getSelection() != null) { jpAssertion.setInputFormat(inputFormatGroup.getSelection().getActionCommand()); } } }
JSONPathAssertionGui extends AbstractAssertionGui implements ChangeListener { @Override public void modifyTestElement(TestElement element) { super.configureTestElement(element); if (element instanceof JSONPathAssertion) { JSONPathAssertion jpAssertion = (JSONPathAssertion) element; jpAssertion.setJsonPath(jsonPath.getText()); jpAssertion.setExpectedValue(jsonValue.getText()); jpAssertion.setJsonValidationBool(jsonValidation.isSelected()); jpAssertion.setExpectNull(expectNull.isSelected()); jpAssertion.setInvert(invert.isSelected()); jpAssertion.setIsRegex(isRegex.isSelected()); if (inputFormatGroup.getSelection() != null) { jpAssertion.setInputFormat(inputFormatGroup.getSelection().getActionCommand()); } } } }
JSONPathAssertionGui extends AbstractAssertionGui implements ChangeListener { @Override public void modifyTestElement(TestElement element) { super.configureTestElement(element); if (element instanceof JSONPathAssertion) { JSONPathAssertion jpAssertion = (JSONPathAssertion) element; jpAssertion.setJsonPath(jsonPath.getText()); jpAssertion.setExpectedValue(jsonValue.getText()); jpAssertion.setJsonValidationBool(jsonValidation.isSelected()); jpAssertion.setExpectNull(expectNull.isSelected()); jpAssertion.setInvert(invert.isSelected()); jpAssertion.setIsRegex(isRegex.isSelected()); if (inputFormatGroup.getSelection() != null) { jpAssertion.setInputFormat(inputFormatGroup.getSelection().getActionCommand()); } } } JSONPathAssertionGui(); }
JSONPathAssertionGui extends AbstractAssertionGui implements ChangeListener { @Override public void modifyTestElement(TestElement element) { super.configureTestElement(element); if (element instanceof JSONPathAssertion) { JSONPathAssertion jpAssertion = (JSONPathAssertion) element; jpAssertion.setJsonPath(jsonPath.getText()); jpAssertion.setExpectedValue(jsonValue.getText()); jpAssertion.setJsonValidationBool(jsonValidation.isSelected()); jpAssertion.setExpectNull(expectNull.isSelected()); jpAssertion.setInvert(invert.isSelected()); jpAssertion.setIsRegex(isRegex.isSelected()); if (inputFormatGroup.getSelection() != null) { jpAssertion.setInputFormat(inputFormatGroup.getSelection().getActionCommand()); } } } JSONPathAssertionGui(); void init(); @Override void clearGui(); @Override TestElement createTestElement(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override void modifyTestElement(TestElement element); @Override void configure(TestElement element); @Override void stateChanged(ChangeEvent e); }
JSONPathAssertionGui extends AbstractAssertionGui implements ChangeListener { @Override public void modifyTestElement(TestElement element) { super.configureTestElement(element); if (element instanceof JSONPathAssertion) { JSONPathAssertion jpAssertion = (JSONPathAssertion) element; jpAssertion.setJsonPath(jsonPath.getText()); jpAssertion.setExpectedValue(jsonValue.getText()); jpAssertion.setJsonValidationBool(jsonValidation.isSelected()); jpAssertion.setExpectNull(expectNull.isSelected()); jpAssertion.setInvert(invert.isSelected()); jpAssertion.setIsRegex(isRegex.isSelected()); if (inputFormatGroup.getSelection() != null) { jpAssertion.setInputFormat(inputFormatGroup.getSelection().getActionCommand()); } } } JSONPathAssertionGui(); void init(); @Override void clearGui(); @Override TestElement createTestElement(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override void modifyTestElement(TestElement element); @Override void configure(TestElement element); @Override void stateChanged(ChangeEvent e);  }