FileDocCategorySizeDatePackage
WebServiceInfoProviderTest.javaAPI DocGlassfish v2 API4230Fri May 04 22:24:46 BST 2007com.sun.enterprise.admin.wsmgmt.repository

WebServiceInfoProviderTest

public class WebServiceInfoProviderTest extends TestCase

Fields Summary
private static final String
EJB_XML_FILE
private static final String
WEB_XML_FILE
private static final String
WS_XML_FILE
private com.sun.enterprise.tools.common.AppServWebServiceInfoProvider
impl
Constructors Summary
public WebServiceInfoProviderTest(String name)

        super(name);        
    
Methods Summary
public static voidmain(java.lang.String[] args)


         
        junit.textui.TestRunner.run(WebServiceInfoProviderTest.class);
    
protected voidsetUp()

        impl = new AppServWebServiceInfoProvider();
    
public voidtestWSInfos()

                        
        try {
           Map map = new HashMap();
           map.put( WebServiceInfoProvider.MOD_TYPE_PROP_NAME, "WEB");
           map.put( WebServiceInfoProvider.WS_XML_LOCATION_PROP_NAME, 
                    WS_XML_FILE);
           map.put( WebServiceInfoProvider.APP_ID_PROP_NAME, "jaxrpc-simple");
           map.put( WebServiceInfoProvider.BUNDLE_NAME_PROP_NAME, 
                    "jaxrpc-simple.war");
           List list  = impl.getWebServiceInfo(WEB_XML_FILE, map); 
           Iterator hItr = list.iterator();
           while ( hItr.hasNext() ) {
                Object m = hItr.next();
                System.out.println(" Web Service Info " + m.toString());
           }
        } catch (RepositoryException re) {
            re.printStackTrace();
            throw re;
        }