Package org.apache.imperius.cimspl.client

Examples of org.apache.imperius.cimspl.client.TestClient


    private static void testCIMSPLClientSideProvider(String path)
    {
        try
        {
            TestClient tc = new TestClient();
            List policyList = _getPolicyNames();
            Iterator policyNameIterator = policyList.iterator();
            while(policyNameIterator.hasNext())
            {   
                String policyName = (String)policyNameIterator.next();
                try
                {
                    tc.deletePolicy(policyName);
                }
                catch(SPLException e)
                {
                   
                }
                tc.createPolicy(path, policyName);
                tc.executePolicy(policyName);
            }  
            try
            {
                tc.deletePolicy("testElement1Policy");
                tc.deletePolicy("CascadedPolicyInvocation");
            }
            catch(SPLException e)
            {
               
            }   
            tc.createPolicy(path,"testElement1Policy");
            tc.createPolicy(path,"CascadedPolicyInvocation");
            tc.executePolicy("CascadedPolicyInvocation");
          
            tc.shutdown();
           
        }
        catch (SPLException e)
        {
            // TODO Auto-generated catch block
View Full Code Here

TOP

Related Classes of org.apache.imperius.cimspl.client.TestClient

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.