()
| 54 | } |
| 55 | |
| 56 | public void testEvent() { |
| 57 | // AppUtil appUtil = new AppUtil(); |
| 58 | AI a = (AI) appUtil.getService("producer"); |
| 59 | TestEvent te = a.ma(); |
| 60 | long start = System.currentTimeMillis(); |
| 61 | while (te.getResult() != 100) { |
| 62 | try { |
| 63 | Thread.sleep(1000); |
| 64 | } catch (InterruptedException e) { |
| 65 | // TODO Auto-generated catch block |
| 66 | e.printStackTrace(); |
| 67 | } |
| 68 | |
| 69 | } |
| 70 | long stop = System.currentTimeMillis(); |
| 71 | |
| 72 | Assert.assertEquals(te.getResult(), 100); |
| 73 | System.out.print("ok " + " " + (stop - start) + "\n"); |
| 74 | } |
| 75 | |
| 76 | public void testCommand() { |
| 77 | // AppUtil appUtil = new AppUtil(); |
no test coverage detected