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