Example #1
0
 @Test
 public void shouldLookUpShadowClassesByNamingConvention() throws Exception {
   ShadowMap map = new ShadowMap.Builder().build();
   assertThat(map.get(android.support.v4.widget.CursorAdapter.class)).isNull();
 }
Example #2
0
 @Test
 public void shouldNotReturnMismatchedClassesJustBecauseTheSimpleNameMatches() throws Exception {
   ShadowMap map = new ShadowMap.Builder().build();
   assertThat(map.get(CursorAdapter.class).shadowClassName)
       .isEqualTo(ShadowCursorAdapter.class.getName());
 }