Skip to content
Snippets Groups Projects
  1. Nov 08, 2022
    • Hyundo Moon's avatar
      Fix failing BluetoothPbapSimVcardManagerTest · 07d25029
      Hyundo Moon authored
      testGetSIMPhonebookNameList_orderByAlphabet was failing since
      the test does not set the local phone name in the service.
      
      This CL fixes it, and also recovers the static variable
      (local phone name) after the test ends.
      
      Bug: 258075245
      Test: atest BluetoothPbapSimVcardManagerTest
      Change-Id: I4a8f3fd9e2a18ba1e626febef0e0ef3588e5f835
      07d25029
  2. Oct 31, 2022
  3. Oct 30, 2022
  4. Oct 29, 2022
    • William Escande's avatar
    • William Escande's avatar
      Fix Stub override when argument is already defined · 89f1bb1e
      William Escande authored
      Mockito does not always support stub override.
      It fail when a a method has 2 stub with different argument matcher
      Ex:
        doReturn(x).when(y).method(any(Foo.class));
        Foo foo = Foo();
        doReturn(x).when(y).method(eq(foo)); <-- sub-match of above
      
      But the following "should" be ok
        Foo foo = Foo();
        doReturn(x).when(y).method(eq(foo));
        Bar bar = Bar();
        doReturn(x).when(y).method(eq(bar)); <-- same scope match as above
      
      Test: atest BluetoothInstrumentationTests
      Bug: 256291144
      Change-Id: Ie84e4bbe1ed3c479adc2a194972ba67e34839f50
      89f1bb1e
  5. Oct 28, 2022
  6. Oct 27, 2022
Loading