Пример #1
0
  @Before
  public void setUp() throws Exception {
    super.setUp();

    m_timestamp = 1385470800000L;
    m_analyzer = (ProblemAnalyzer) lookup(MessageAnalyzer.class, ProblemAnalyzer.ID);
    SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd HH:mm");
    Date date = sdf.parse("20120101 00:00");

    m_analyzer.initialize(date.getTime(), Constants.HOUR, Constants.MINUTE * 5);
  }
Пример #2
0
 @Before
 @Override
 public void setUp() throws Exception {
   super.setUp();
   m_reportDao = lookup(ReportDao.class);
 }
Пример #3
0
 @Before
 public void setUp() throws Exception {
   super.setUp();
   defineComponent(MetaService.class, TestMetaService.class);
 }