Package com.force.sdk.qa.util

Examples of com.force.sdk.qa.util.UserInfo


        cleanSchema();
    }
   
    @BeforeClass
    public void loadPersistenceUnit() throws Exception {
        UserInfo info = BaseJPAFTest.getDefaultUserInfoFromContext();
        ForceConnectorConfig cc = new ForceConnectorConfig();
        cc.setUsername(info.getUserName());
        cc.setPassword(info.getPassword());
        cc.setAuthEndpoint(info.getServerEndpoint());
        BaseJPAFTest.populateTestContext(getTestName(), info);
    }
View Full Code Here


    /**
     * Helper to retrieve the namespace of the org stored in the current test context.
     * @return String containing the namespace
     */
    public static String getNamespaceFromCtx() throws ConnectionException {
        UserInfo info = TestContext.get().getUserInfo();
        ForceConnectorConfig config = new ForceConnectorConfig();
        config.setAuthEndpoint(info.getServerEndpoint());
        config.setUsername(info.getUserName());
        config.setPassword(info.getPassword());
        ForceServiceConnector connector = new ForceServiceConnector(config);
        return connector.getNamespace();
    }
View Full Code Here

TOP

Related Classes of com.force.sdk.qa.util.UserInfo

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.