@BeforeClass(
     groups = {"wso2.das"},
     alwaysRun = true)
 protected void init() throws Exception {
   super.init();
   String session = getSessionCookie();
   webServiceClient = new AnalyticsWebServiceClient(backendURL, session);
   persistenceClient = new EventStreamPersistenceClient(backendURL, session);
 }
예제 #2
0
 protected void init() throws Exception {
   init(TestUserMode.SUPER_TENANT_ADMIN);
   String apiConf =
       new File(
               this.getClass()
                   .getClassLoader()
                   .getResource(
                       "dasconfig"
                           + File.separator
                           + "api"
                           + File.separator
                           + "analytics-data-config.xml")
                   .toURI())
           .getAbsolutePath();
   this.analyticsDataAPI = new CarbonAnalyticsAPI(apiConf);
 }