MCPcopy Create free account
hub / github.com/banq/jdonframework / testEvent

Method testEvent

src/test/java/com/jdon/SampleAppTest.java:56–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Callers 1

mainMethod · 0.95

Calls 3

maMethod · 0.95
getResultMethod · 0.95
getServiceMethod · 0.65

Tested by

no test coverage detected