Package com.eviware.soapui.support.xml

Examples of com.eviware.soapui.support.xml.XmlObjectConfigurationBuilder


        this.token = token;
        setConfiguration(createConfiguration());
    }

    protected XmlObject createConfiguration() {
        XmlObjectConfigurationBuilder builder = new XmlObjectConfigurationBuilder();
        builder.add("token", token);
        builder.add("ignoreCase", ignoreCase);
        builder.add("useRegEx", useRegEx);
        return builder.finish();
    }
View Full Code Here


    protected GroovyScriptAssertionPanel getScriptAssertionPanel() {
        return groovyScriptAssertionPanel;
    }

    protected XmlObject createConfiguration() {
        XmlObjectConfigurationBuilder builder = new XmlObjectConfigurationBuilder();
        builder.add("scriptText", scriptText);
        return builder.finish();
    }
View Full Code Here

public class XmlObjectConfigurationTest {

    @Test
    public void testConfiguration() throws Exception {
        XmlObjectConfigurationBuilder builder = new XmlObjectConfigurationBuilder();
        builder.add("testFloat", (float) 0.123);
        builder.add("testInt", 123);
        builder.add("testString", "1234");

        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(builder.finish());
        assertEquals((float) 0.123, reader.readFloat("testFloat", 0), 0);
        assertEquals(123, reader.readInt("testInt", 0));
        assertEquals("1234", reader.readString("testString", null));
    }
View Full Code Here

    protected XPathContainsAssertion getAssertion() {
        return this;
    }

    public XmlObject createConfiguration() {
        XmlObjectConfigurationBuilder builder = new XmlObjectConfigurationBuilder();
        addConfigurationValues(builder);
        return builder.finish();
    }
View Full Code Here

        setConfiguration(createConfiguration());
        return true;
    }

    protected XmlObject createConfiguration() {
        XmlObjectConfigurationBuilder builder = new XmlObjectConfigurationBuilder();
        builder.add("token", token);
        builder.add("ignoreCase", ignoreCase);
        builder.add("useRegEx", useRegEx);
        return builder.finish();
    }
View Full Code Here

    /**
     * @return XmlObject, our config chunk
     */
    protected XmlObject createConfiguration() {
        XmlObjectConfigurationBuilder builder = new XmlObjectConfigurationBuilder();
        return builder.add("SLA", SLA).finish();
    }
View Full Code Here

            }
        }
    }

    protected XmlObject createConfiguration() {
        XmlObjectConfigurationBuilder builder = new XmlObjectConfigurationBuilder();
        return builder.add("definition", definition).finish();
    }
View Full Code Here

            randomFactor = reader.readFloat("randomFactor", DEFAULT_RANDOM_FACTOR);
        }
    }

    public XmlObject getConfig() {
        XmlObjectConfigurationBuilder builder = new XmlObjectConfigurationBuilder();
        builder.add("testDelay", testDelay);
        builder.add("randomFactor", randomFactor);
        return builder.finish();
    }
View Full Code Here

            endThreadCount = reader.readInt("endThreadCount", DEFAULT_END_THREAD_COUNT);
        }
    }

    public XmlObject getConfig() {
        XmlObjectConfigurationBuilder builder = new XmlObjectConfigurationBuilder();
        builder.add("startThreadCount", startThreadCount);
        builder.add("endThreadCount", endThreadCount);
        return builder.finish();
    }
View Full Code Here

                builder.buildOkCancelHelpActions(HelpUrls.STEP_STATUS_LOAD_TEST_ASSERTION_HELP_URL),
                "Specify options for this Step Status Assertion", UISupport.OPTIONS_ICON);
    }

    protected void updateConfiguration() {
        XmlObjectConfigurationBuilder builder = new XmlObjectConfigurationBuilder();

        builder.add(NAME_ELEMENT, getName());
        builder.add(MIN_REQUESTS_ELEMENT, minRequests);
        builder.add(TEST_STEP_ELEMENT, getTargetStep());
        builder.add(MAX_ERRORS_ELEMENT, maxErrors);

        setConfiguration(builder.finish());
    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.xml.XmlObjectConfigurationBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.