()
| 74 | } |
| 75 | |
| 76 | public void testCommand() { |
| 77 | // AppUtil appUtil = new AppUtil(); |
| 78 | AComponentIF a = (AComponentIF) appUtil |
| 79 | .getComponentInstance("producerforCommand"); |
| 80 | BModel bModel = new BModel("one"); |
| 81 | TestCommand testCommand = a.ma(bModel); |
| 82 | long start = System.currentTimeMillis(); |
| 83 | while (testCommand.getOutput() != 199) { |
| 84 | |
| 85 | try { |
| 86 | Thread.sleep(1000); |
| 87 | } catch (InterruptedException e) { |
| 88 | // TODO Auto-generated catch block |
| 89 | e.printStackTrace(); |
| 90 | } |
| 91 | } |
| 92 | long stop = System.currentTimeMillis(); |
| 93 | Assert.assertEquals(testCommand.getOutput(), 199); |
| 94 | System.out.print("ok " + " " + (stop - start) + "\n"); |
| 95 | } |
| 96 | |
| 97 | public void testDomainEvent() { |
| 98 |
no test coverage detected