diff options
Diffstat (limited to 'car-qc-lib/tests/unit/src/com/android/car/qc/controller/RemoteQCControllerTest.java')
-rw-r--r-- | car-qc-lib/tests/unit/src/com/android/car/qc/controller/RemoteQCControllerTest.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/car-qc-lib/tests/unit/src/com/android/car/qc/controller/RemoteQCControllerTest.java b/car-qc-lib/tests/unit/src/com/android/car/qc/controller/RemoteQCControllerTest.java index a1db602..55f0a9c 100644 --- a/car-qc-lib/tests/unit/src/com/android/car/qc/controller/RemoteQCControllerTest.java +++ b/car-qc-lib/tests/unit/src/com/android/car/qc/controller/RemoteQCControllerTest.java @@ -66,6 +66,16 @@ public class RemoteQCControllerTest extends BaseQCControllerTestCase<RemoteQCCon } @Test + public void onBind_updatesQCItem() { + Observer<QCItem> observer = mock(Observer.class); + RemoteQCController spiedController = spy(getController()); + spiedController.addObserver(observer); + spiedController.bind(); + InstrumentationRegistry.getInstrumentation().waitForIdleSync(); + verify(spiedController).onQCItemUpdated(notNull()); + } + + @Test public void updateListening_listen_updatesQCItem() { Observer<QCItem> observer = mock(Observer.class); RemoteQCController spiedController = spy(getController()); |