コード例 #1
0
 @Override
 protected void init() throws Exception {
   super.init();
   this._statMonitor =
       (StatsMonitor)
           this.getApplicationContext()
               .getBean(JpStatsSystemConstants.STATS_MONITOR_CONTROL_SERVICE);
 }
コード例 #2
0
 protected void tearDown() throws Exception {
   try {
     DataSource dataSource = (DataSource) this.getApplicationContext().getBean("portDataSource");
     TestStatsUtils.cleanDB(ip, dataSource);
     this._statMonitor = null;
     super.tearDown();
   } catch (Throwable t) {
     throw new Exception(t);
   }
 }