当前位置: 首页>>代码示例>>Java>>正文


Java TestUserMode.SUPER_TENANT_ADMIN属性代码示例

本文整理汇总了Java中org.wso2.carbon.automation.engine.context.TestUserMode.SUPER_TENANT_ADMIN属性的典型用法代码示例。如果您正苦于以下问题:Java TestUserMode.SUPER_TENANT_ADMIN属性的具体用法?Java TestUserMode.SUPER_TENANT_ADMIN怎么用?Java TestUserMode.SUPER_TENANT_ADMIN使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.wso2.carbon.automation.engine.context.TestUserMode的用法示例。


在下文中一共展示了TestUserMode.SUPER_TENANT_ADMIN属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: init

@BeforeClass(alwaysRun = true)
public void init() throws Exception {

    super.init();
    serverConfigurationManager = new ServerConfigurationManager(new AutomationContext("ESB", TestUserMode.SUPER_TENANT_ADMIN));
    String nhttpFile = FrameworkPathUtil.getSystemResourceLocation() + "artifacts" + separator + "ESB" + separator +
            "passthru" + separator + "transport" + separator + "httpaccesslogs" + separator + "nhttp.properties";

    File srcFile = new File(nhttpFile);
    String carbonHome = System.getProperty(ServerConstants.CARBON_HOME);
    httpLogDir = carbonHome + File.separator + "repository" + File.separator + "logs" + File.separator + "httpLogs";
    File log4jProperties = new File(carbonHome + File.separator + "conf" +
            File.separator + "log4j.properties");

    String propertyName = "nhttp.log.directory";
    createNewDir(httpLogDir);
    applyProperty(srcFile, propertyName, httpLogDir);
    applyProperty(log4jProperties, "log4j.logger.org.apache.synapse.transport.http.access", "DEBUG");
    serverConfigurationManager.restartGracefully();
    super.init();
    verifyProxyServiceExistence("HttpAccessLogsTestProxy");
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:22,代码来源:HttpAccessLogTestCase.java

示例2: initialize

@BeforeClass(alwaysRun = true)
protected void initialize() throws Exception {
    //Starting the thrift port to listen to statistics events
    thriftServer = new ThriftServer("Wso2EventTestCase", 7612, true);
    thriftServer.start(7612);
    log.info("Thrift Server is Started on port 8462");

    //Changing synapse configuration to enable statistics and tracing
    serverConfigurationManager =
            new ServerConfigurationManager(new AutomationContext("ESB", TestUserMode.SUPER_TENANT_ADMIN));
    serverConfigurationManager.applyConfiguration(
            new File(getESBResourceLocation() + File.separator + "StatisticTestResources" + File.separator +
                    "synapse.properties"));
    super.init();

    thriftServer.resetMsgCount();
    thriftServer.resetPreservedEventList();
    //load esb configuration to the server
    loadESBConfigurationFromClasspath("/artifacts/ESB/synapseconfig/statistics/synapseconfigapi.xml");
    thriftServer.waitToReceiveEvents(20000, 3); //waiting for esb to send artifact config data to the thriftserver

    //Checking whether all the artifact configuration events are received
    Assert.assertEquals("Three configuration events are required", 3, thriftServer.getMsgCount());
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:24,代码来源:ApiStatisticsTest.java

示例3: init

@BeforeClass(alwaysRun = true)
protected void init() throws Exception {
    activeMQServer.startJMSBroker();
    super.init();
    serverConfigurationManager =
            new ServerConfigurationManager(new AutomationContext("ESB", TestUserMode.SUPER_TENANT_ADMIN));
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:7,代码来源:JMSInboundBrokerShutdownTestCase.java

示例4: setEnvironment

@BeforeClass(alwaysRun = true)
public void setEnvironment() throws Exception {
    super.init();

    ServerConfigurationManager serverConfigurationManager = new ServerConfigurationManager(
            new AutomationContext("ESB", TestUserMode.SUPER_TENANT_ADMIN));
    serverConfigurationManager.applyConfiguration(new File(
            getESBResourceLocation() + File.separator + "mediatorconfig" + File.separator + "property"
                    + File.separator + "synapse.properties"));
    super.init();
    loadESBConfigurationFromClasspath(
            File.separator + "artifacts" + File.separator + "ESB" + File.separator + "mediatorconfig"
                    + File.separator + "property" + File.separator + "XPATH2Function.xml");
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:14,代码来源:PropertyXPATH2FunctionsTestCase.java

示例5: userModeDataProvider

@DataProvider
    public static Object[][] userModeDataProvider() {
        return new Object[][]{
                new Object[]{TestUserMode.SUPER_TENANT_ADMIN},
//                new Object[]{TestUserMode.TENANT_ADMIN},
        };
    }
 
开发者ID:wso2,项目名称:product-ei,代码行数:7,代码来源:DSSIntegrationTest.java

示例6: startJMSBrokerAndConfigureESB

@SetEnvironment(executionEnvironments = {ExecutionEnvironment.STANDALONE})
@BeforeTest(alwaysRun = true)
public void startJMSBrokerAndConfigureESB() throws Exception {
    super.init();
    serverConfigurationManager = new ServerConfigurationManager(
            new AutomationContext("ESB", TestUserMode.SUPER_TENANT_ADMIN));
    serverConfigurationManager.applyConfiguration(
            Paths.get(getESBResourceLocation(), "nhttp", "transport", "axis2.xml").toFile());

}
 
开发者ID:wso2,项目名称:product-ei,代码行数:10,代码来源:NhttpBaseTestCase.java

示例7: init

@BeforeClass
public void init() throws Exception {
    super.init();
    serverConfigurationManager = new ServerConfigurationManager(new AutomationContext("ESB", TestUserMode.SUPER_TENANT_ADMIN));
    /*
       * If test run in external distributed deployment you need to copy
       * following configFiles/preserveContentType/passthru-http.properties resource
       */

    serverConfigurationManager.applyConfiguration(new File(getESBResourceLocation() + File.separator + "passthru" +
            File.separator + "transport" + File.separator + "preserveheaders" + File.separator + "passthru-http.properties"));
    super.init();
    wireServer = new WireMonitorServer(8992);
    verifyAPIExistence("ContentTypePreserveAPI");
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:15,代码来源:ESBJAVA4631PreserveHTTPHeadersTest.java

示例8: init

@BeforeClass(alwaysRun = true)
public void init() throws Exception {

    super.init();
    toUrl = getBackEndServiceUrl(ESBTestConstant.SIMPLE_STOCK_QUOTE_SERVICE);
    serverConfigurationManager = new ServerConfigurationManager(new AutomationContext("ESB", TestUserMode.SUPER_TENANT_ADMIN));
 URL url = getClass().getResource(separator + "artifacts" + separator + "ESB" + separator
                                  + "synapseconfig" + separator + "nhttp_transport" + separator
                                  + "nhttp.properties");
 File srcFile = new File(url.getPath());
 serverConfigurationManager.applyConfiguration(srcFile);
 super.init();
    loadESBConfigurationFromClasspath(separator + "artifacts" + separator + "ESB" + separator + "synapseconfig" +
                                      separator + "nhttp_transport" + separator + "response_nhttp_synapse.xml");
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:15,代码来源:ResponseAfterNttpEnabledTestCase.java

示例9: init

@BeforeClass(alwaysRun = true)
protected void init() throws Exception {
	activeMQServer.startJMSBroker();
	super.init();
	serverConfigurationManager =
			new ServerConfigurationManager(new AutomationContext("ESB", TestUserMode.SUPER_TENANT_ADMIN));
	OMElement synapse =
			esbUtils.loadResource("/artifacts/ESB/jms/inbound/transport/jms_transport_proxy_service.xml");
	updateESBConfiguration(JMSEndpointManager.setConfigurations(synapse));
	inboundAdminClient = new InboundAdminClient(context.getContextUrls().getBackEndUrl(),getSessionCookie());
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:11,代码来源:JMSInboundTransportTestCase.java

示例10: startJMSBroker

public void startJMSBroker() throws Exception {
    context = new AutomationContext("ESB", TestUserMode.SUPER_TENANT_ADMIN);

    activeMqBroker = new JMSBrokerController("localhost", getJMSBrokerConfiguration());
    if (!JMSBrokerController.isBrokerStarted()) {
        Assert.assertTrue(activeMqBroker.start(), "JMS Broker(ActiveMQ) stating failed");
    }
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:8,代码来源:ActiveMQServer.java

示例11: init

@BeforeClass(alwaysRun = true)
public void init() throws Exception {

    super.init();
    serverConfigurationManager = new ServerConfigurationManager(contextUrls.getBackEndUrl(),
            TestUserMode.SUPER_TENANT_ADMIN);
    synapseConfigAdminClient = new SynapseConfigAdminClient(contextUrls.getBackEndUrl(), getSessionCookie());
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:8,代码来源:MessageProcessorPersistenceTestCase.java

示例12: deployServices

@BeforeTest(alwaysRun = true)
public void deployServices()
        throws IOException, LoginAuthenticationExceptionException, ExceptionException,
        XPathExpressionException, XMLStreamException, SAXException, URISyntaxException, AutomationUtilException {

    if (TestConfigurationProvider.isIntegration()) {
        axis2Server1 = new SampleAxis2Server("test_axis2_server_9007.xml");
        axis2Server1.deployService("SecureStockQuoteServiceScenario1");
        axis2Server1.start();

        axis2Server1.deployService("SecureStockQuoteServiceScenario2");
        axis2Server1.deployService("SecureStockQuoteServiceScenario3");
        axis2Server1.deployService("SecureStockQuoteServiceScenario4");
        axis2Server1.deployService("SecureStockQuoteServiceScenario5");
        axis2Server1.deployService("SecureStockQuoteServiceScenario6");
        axis2Server1.deployService("SecureStockQuoteServiceScenario7");
        axis2Server1.deployService("SecureStockQuoteServiceScenario8");
        //        axis2Server1.deployService("SecureStockQuoteServiceScenario9");
        //        axis2Server1.deployService("SecureStockQuoteServiceScenario10");

    } else {
        AutomationContext asContext = new AutomationContext("AS", TestUserMode.SUPER_TENANT_ADMIN);
        int deploymentDelay = TestConfigurationProvider.getServiceDeploymentDelay();
        String serviceName = "SecureStockQuoteServiceScenario";
        String serviceFilePath = TestConfigurationProvider.getResourceLocation("AXIS2")
                                 + File.separator + "aar" + File.separator + serviceName;
        ServiceDeploymentUtil deployer = new ServiceDeploymentUtil();
        LoginLogoutClient loginLogoutClient = new LoginLogoutClient(asContext);
        for (int i = 1; i < 9; i++) {
            deployer.deployArrService(asContext.getContextUrls().getBackEndUrl(), loginLogoutClient.login()
                    , serviceName + i, serviceFilePath + i + ".aar", deploymentDelay);
        }
    }
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:34,代码来源:Axis2ServerStartupWithSecuredServices.java

示例13: deployServices

@BeforeTest(alwaysRun = true)
public void deployServices() throws Exception {

    if (TestConfigurationProvider.isIntegration()) {
        axis2Server1 = new SampleAxis2Server("test_axis2_server_9009.xml");
        axis2Server1.start();
        axis2Server1.deployService(ESBTestConstant.STUDENT_REST_SERVICE);
        axis2Server1.deployService(ESBTestConstant.SIMPLE_AXIS2_SERVICE);
        axis2Server1.deployService(ESBTestConstant.SIMPLE_STOCK_QUOTE_SERVICE);

    } else {
        asContext = new AutomationContext("AS", TestUserMode.SUPER_TENANT_ADMIN);
        int deploymentDelay = TestConfigurationProvider.getServiceDeploymentDelay();
        String serviceName = ESBTestConstant.SIMPLE_AXIS2_SERVICE;
        String serviceFilePath = TestConfigurationProvider.getResourceLocation("AXIS2")
                                 + File.separator + "aar" + File.separator + serviceName + ".aar";
        ServiceDeploymentUtil deployer = new ServiceDeploymentUtil();
        String sessionCookie = new LoginLogoutClient(asContext).login();
        deployer.deployArrService(asContext.getContextUrls().getBackEndUrl(), sessionCookie
                , serviceName, serviceFilePath, deploymentDelay);

        String studentServiceName = ESBTestConstant.STUDENT_REST_SERVICE;
        String studentServiceFilePath = TestConfigurationProvider.getResourceLocation("AXIS2")
                                        + File.separator + "aar" + File.separator + studentServiceName + ".aar";
        deployer.deployArrService(asContext.getContextUrls().getBackEndUrl(), sessionCookie
                , studentServiceName, studentServiceFilePath, deploymentDelay);

    }
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:29,代码来源:Axis2ServerStartupTestCase.java

示例14: setUp

@BeforeTest(alwaysRun = true)
public void setUp() throws Exception {
    serverManager = new ServerConfigurationManager(new AutomationContext("ESB", TestUserMode.SUPER_TENANT_ADMIN));
    serverManager.applyConfiguration(
            new File(getClass().getResource("/artifacts/ESB/nhttp/transport/axis2.xml").getPath()));
    super.init();
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:7,代码来源:NhttpBaseTestCase.java

示例15: init

protected void init() throws Exception {
    userMode =  TestUserMode.SUPER_TENANT_ADMIN;
    init(userMode);

}
 
开发者ID:wso2,项目名称:product-ei,代码行数:5,代码来源:DSSIntegrationTest.java


注:本文中的org.wso2.carbon.automation.engine.context.TestUserMode.SUPER_TENANT_ADMIN属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。