5package io.flutter.util;
7import static io.flutter.Build.API_LEVELS;
8import static org.junit.Assert.assertTrue;
14import org.junit.runner.RunWith;
15import org.robolectric.RobolectricTestRunner;
16import org.robolectric.annotation.Config;
18@RunWith(RobolectricTestRunner.class)
22 public
void createAsync_createsAnAsyncHandler() {
23 Handler handler = Handler.createAsync(Looper.getMainLooper());
25 Message
message = Message.obtain();
26 handler.sendMessageAtTime(
message, 0);
28 assertTrue(
message.isAsynchronous());