Beispiel #1
0
 @Test
 public void testCustomStorage() {
   builder.setStorage(HawkBuilder.newSqliteStorage(context)).build();
   assertThat(builder.getStorage()).isInstanceOf(SqliteStorage.class);
 }
Beispiel #2
0
 @Test
 public void testDefaultStorage() {
   builder.build();
   assertThat(builder.getStorage()).isInstanceOf(SharedPreferencesStorage.class);
 }