use of com.pushtorefresh.storio3.TypeMappingFinder in project storio by pushtorefresh.
the class DefaultStorIOContentResolverTest method shouldUseSpecifiedTypeMappingFinder.
@Test
public void shouldUseSpecifiedTypeMappingFinder() throws NoSuchFieldException, IllegalAccessException {
TypeMappingFinder typeMappingFinder = mock(TypeMappingFinder.class);
DefaultStorIOContentResolver storIOContentResolver = DefaultStorIOContentResolver.builder().contentResolver(mock(ContentResolver.class)).typeMappingFinder(typeMappingFinder).build();
assertThat(getTypeMappingFinder(storIOContentResolver)).isEqualTo(typeMappingFinder);
}
use of com.pushtorefresh.storio3.TypeMappingFinder in project storio by pushtorefresh.
the class DefaultStorIOContentResolverTest method deprecatedInternalImplShouldReturnSentToConstructorTypeMapping.
@Test
public void deprecatedInternalImplShouldReturnSentToConstructorTypeMapping() throws NoSuchFieldException, IllegalAccessException {
ContentResolver contentResolver = mock(ContentResolver.class);
TypeMappingFinder typeMappingFinder = mock(TypeMappingFinder.class);
TestDefaultStorIOContentResolver storIOContentResolver = new TestDefaultStorIOContentResolver(contentResolver, mock(Handler.class), typeMappingFinder);
assertThat(storIOContentResolver.typeMappingFinder()).isSameAs(typeMappingFinder);
}
use of com.pushtorefresh.storio3.TypeMappingFinder in project storio by pushtorefresh.
the class DefaultStorIOSQLiteTest method shouldUseSpecifiedTypeMappingFinder.
@Test
public void shouldUseSpecifiedTypeMappingFinder() throws NoSuchFieldException, IllegalAccessException {
TypeMappingFinder typeMappingFinder = mock(TypeMappingFinder.class);
DefaultStorIOSQLite storIOSQLite = DefaultStorIOSQLite.builder().sqliteOpenHelper(sqLiteOpenHelper).typeMappingFinder(typeMappingFinder).build();
assertThat(getTypeMappingFinder(storIOSQLite)).isEqualTo(typeMappingFinder);
}
use of com.pushtorefresh.storio3.TypeMappingFinder in project storio by pushtorefresh.
the class DefaultStorIOSQLiteTest method deprecatedInternalImplShouldReturnSentToConstructorTypeMapping.
@Test
public void deprecatedInternalImplShouldReturnSentToConstructorTypeMapping() throws NoSuchFieldException, IllegalAccessException {
TypeMappingFinder typeMappingFinder = mock(TypeMappingFinder.class);
TestDefaultStorIOSQLite storIOSQLite = new TestDefaultStorIOSQLite(sqLiteOpenHelper, typeMappingFinder);
assertThat(storIOSQLite.typeMappingFinder()).isSameAs(typeMappingFinder);
}
Aggregations