예제 #1
0
  public void testEvent() {
    AppUtil appUtil = new AppUtil();
    AI a = (AI) appUtil.getService("producer");
    TestEvent te = a.ma();
    long start = System.currentTimeMillis();
    while (te.getResult() != 100) {}
    long stop = System.currentTimeMillis();

    Assert.assertEquals(te.getResult(), 100);
    System.out.print("ok " + "  " + (stop - start) + "\n");
  }
예제 #2
0
  public void testComponentsEvent() {

    AI a = (AI) appUtil.getService("producer");
    a.ma();
  }