예제 #1
0
  @BeforeClass(groups = {"wso2.greg.resource"})
  public void init() throws Exception {
    log.info("Initializing Tests for Community Feature in Registry Policy");
    log.debug("Community Feature in Registry Policy Test Initialised");
    loggedInSessionCookie = util.login();
    frameworkPath = FrameworkSettings.getFrameworkPath();

    log.debug("Running SuccessCase");
    resourceAdminServiceStub = TestUtils.getResourceAdminServiceStub(loggedInSessionCookie);
    contentSearchAdminServiceStub =
        TestUtils.getContentSearchAdminServiceStub(loggedInSessionCookie);
  }
 @BeforeClass(groups = {"wso2.cep"})
 public void login() throws Exception {
   ClientConnectionUtil.waitForPort(9443);
   String loggedInSessionCookie = util.login();
   cepAdminServiceStub =
       new CEPAdminServiceStub("https://localhost:9443/services/CEPAdminService");
   ServiceClient client = cepAdminServiceStub._getServiceClient();
   Options options = client.getOptions();
   options.setManageSession(true);
   options.setProperty(
       org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, loggedInSessionCookie);
 }
 @AfterClass(groups = {"wso2.cep"})
 public void logout() throws Exception {
   ClientConnectionUtil.waitForPort(9443);
   util.logout();
 }