MCPcopy Index your code
hub / github.com/BoltsFramework/Bolts-Java / call

Method call

BoltsTest/src/bolts/TaskTest.java:123–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121 public void testBackgroundCall() {
122 runTaskTest(new Callable<Task<?>>() {
123 public Task<?> call() throws Exception {
124 return Task.callInBackground(new Callable<Integer>() {
125 public Integer call() throws Exception {
126 Thread.sleep(100);
127 return 5;
128 }
129 }).continueWith(new Continuation<Integer, Void>() {
130 public Void then(Task<Integer> task) {
131 assertEquals(5, task.getResult().intValue());
132 return null;
133 }
134 });
135 }
136 });
137 }
138

Callers 1

runTaskTestMethod · 0.45

Calls 11

callInBackgroundMethod · 0.95
whenAllMethod · 0.95
createMethod · 0.95
forResultMethod · 0.95
continueWithMethod · 0.80
setCancelledMethod · 0.80
setResultMethod · 0.80
getTaskMethod · 0.80
continueWithTaskMethod · 0.80
continueWhileMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected