package org.codehaus.xfire.message.wrapped;

import org.codehaus.xfire.aegis.AbstractXFireAegisTest;
import org.codehaus.xfire.service.binding.ObjectServiceFactory;
import org.codehaus.yom.Document;

/**
 * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
 * @since Feb 21, 2004
 */
public class PrimitiveServiceTest
        extends AbstractXFireAegisTest
{
    public void setUp()
            throws Exception
    {
        super.setUp();
        ((ObjectServiceFactory) getServiceFactory()).setStyle("document");
        getServiceRegistry().register(getServiceFactory().create(AddNumbers.class));
    }

    public void testService()
            throws Exception
    {
        Document response =
                invokeService("AddNumbers",
                              "/org/codehaus/xfire/message/wrapped/add.xml");

        addNamespace("a", "http://wrapped.message.xfire.codehaus.org");
        assertValid("//a:addResponse/a:out[text()='2']", response);
    }
}

@@ -454,83 +454,8 @@
 ();%0A
-        ((ObjectServiceFactory) getServiceFactory()).setStyle(%22document%22);%0A
     

fix test