Package com.volantis.mcs.xdime

Examples of com.volantis.mcs.xdime.DataHandlingStrategyMock


     *
     * @throws XDIMEException if there was a problem running the test.
     */
    public void testCallCloseOnProtocol() throws XDIMEException {
        // Create test objects.
        DataHandlingStrategyMock strategy =
                new DataHandlingStrategyMock("strategy", expectations);
        XDIMEContextInternal context =
                prepareEnvironment("DOMActivate", submissionID);

        // Set expectations.
        requestContext.expects.getEnvironmentContext().returns(envContext);
View Full Code Here


     *
     * @throws XDIMEException if there was a problem running the test.
     */
    public void testBodyValueOverridesAttributeValue() throws XDIMEException {
        // Create test objects.
        DataHandlingStrategyMock strategy =
                new DataHandlingStrategyMock("strategy", expectations);
        XDIMEContextInternal context =
                prepareEnvironment("DOMActivate", submissionID);

        // Set expectations.
        requestContext.expects.getEnvironmentContext().returns(envContext);
View Full Code Here

     *
     * @throws XDIMEException if there was a problem running the test.
     */
    public void testAttributeValueUsedWhenNoBodyValue() throws XDIMEException {
        // Create test objects.
        DataHandlingStrategyMock strategy =
                new DataHandlingStrategyMock("strategy", expectations);
        XDIMEContextInternal context =
                prepareEnvironment("DOMActivate", submissionID);

        // Set expectations.
        requestContext.expects.getEnvironmentContext().returns(envContext);
View Full Code Here

     * @throws XDIMEException if there was a problem running the test.
     */
    public void testCallCloseOnProtocolWithInvalidParent()
            throws XDIMEException {
        // Create test objects.
        DataHandlingStrategyMock strategy =
                new DataHandlingStrategyMock("strategy", expectations);
        XDIMEContextInternal context =
                prepareEnvironment("DOMActivate", submissionID);

        // Set expectations.
        requestContext.expects.getEnvironmentContext().returns(envContext);
View Full Code Here

        PolicyReferenceResolverMock policyRefResolver =
                new PolicyReferenceResolverMock("policyRefResolver", expectations);
        SelectOptionMock attributes =
                new SelectOptionMock("attributes", expectations);
        TextAssetReference textAssetRef = new LiteralTextAssetReference("");
        DataHandlingStrategyMock strategy =
                new DataHandlingStrategyMock("strategy", expectations);
        StylesMock labelStyles = new StylesMock("labelStyles", expectations);
        StylingEngineMock stylingEngine =
                new StylingEngineMock("stylingEngine", expectations);

        contextMock.expects.getXFormBuilder().returns(builder);
View Full Code Here

                new PolicyReferenceResolverMock("policyRefResolver", expectations);
        XFFormFieldAttributesMock attributes =
                new XFFormFieldAttributesMock("attributes", expectations);
        TextAssetReference textAssetRef = new LiteralTextAssetReference("");
        StylesMock labelStyles = new StylesMock("labelStyles", expectations);
        DataHandlingStrategyMock strategy =
                new DataHandlingStrategyMock("strategy", expectations);
        StylingEngineMock stylingEngine =
                new StylingEngineMock("stylingEngine", expectations);

        contextMock.expects.getXFormBuilder().returns(builder);
        builder.expects.getCurrentModel().returns(model);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.xdime.DataHandlingStrategyMock

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.