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

Method testCommand

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

Source from the content-addressed store, hash-verified

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

Callers 1

mainMethod · 0.95

Calls 3

maMethod · 0.95
getOutputMethod · 0.95
getComponentInstanceMethod · 0.45

Tested by

no test coverage detected