package org.codehaus.xfire.generator.wsrp;


import org.codehaus.xfire.gen.Wsdl11Generator;
import org.codehaus.xfire.generator.GenerationTestSupport;

import com.sun.codemodel.JCodeModel;
import com.sun.codemodel.JDefinedClass;

public class WSRPTest
    extends GenerationTestSupport
{
    public void testWSRP() throws Exception
    {
        Wsdl11Generator generator = new Wsdl11Generator();
        generator.setWsdl("src/wsdl/wsrp/wsrp_service.wsdl");
        generator.setOutputDirectory(getTestFilePath("target/test-services"));
        generator.setDestinationPackage("org.codehaus.xfire.generator.wsrp");
        generator.setBinding("jaxb");
        generator.generate();
        
        JCodeModel model = generator.getCodeModel();
        JDefinedClass echo = model._getClass("org.codehaus.xfire.generator.wsrp.WSRPServiceClient");
        assertNotNull(echo);
    }
}

@@ -431,16 +431,32 @@
 setWsdl(
+getTestFilePath(
 %22src/wsd
@@ -481,16 +481,17 @@
 e.wsdl%22)
+)
 ;%0D%0A     

use absolute path