Package jsr181.jaxb.auth

Source Code of jsr181.jaxb.auth.AuthServiceWsdlTest

package jsr181.jaxb.auth;

import java.io.File;

import javax.xml.namespace.QName;

import org.codehaus.xfire.XFire;
import org.codehaus.xfire.aegis.AbstractXFireAegisTest;
import org.codehaus.xfire.service.Service;
import org.codehaus.xfire.spring.XFireConfigLoader;
import org.codehaus.xfire.wsdl.ResourceWSDL;

public class AuthServiceWsdlTest  
    extends AbstractXFireAegisTest
{
    public void testWSDL() throws Exception
    {  
       XFireConfigLoader loader = new XFireConfigLoader();
       XFire xfire = loader.loadConfig(new File(new File(getBasedir()), "target/auth-service/META-INF/xfire/services.xml").getAbsolutePath());
      
       assertTrue(xfire.getServiceRegistry().getServices().size() == 1);
      
       Service service = xfire.getServiceRegistry().getService(new QName("urn:xfire:authenticate", "AuthService"));
      
       assertNotNull(service);
      
       assertTrue(service.getWSDLWriter() instanceof ResourceWSDL);
    }
}
TOP

Related Classes of jsr181.jaxb.auth.AuthServiceWsdlTest

TOP
Copyright © 2018 www.massapi.com. 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.