@Test() public void testFindAll() { this.languaguesDAOImpl = LanguaguesDAOImpl.getInstance(super.getContext()); try { assertNotNull(this.languaguesDAOImpl.findAll()); } catch (AhorcaToothPersistenceException e) { fail(e.getMessage()); } }
@Test() public void testCount() { this.languaguesDAOImpl = LanguaguesDAOImpl.getInstance(super.getContext()); try { long count = this.languaguesDAOImpl.count(); assertEquals(1, count); } catch (AhorcaToothPersistenceException e) { fail(e.getMessage()); } }
@Test() public void testSave() { this.languaguesDAOImpl = LanguaguesDAOImpl.getInstance(super.getContext()); ContentValues contentValues = new ContentValues(); contentValues.put(LanguagesContract.Column.DESCRIPTION, "English language"); contentValues.put(LanguagesContract.Column.ISO_CODE, "2"); contentValues.put(LanguagesContract.Column.TONGUE, "English"); try { assertNotNull(this.languaguesDAOImpl.save(contentValues)); } catch (AhorcaToothPersistenceException e) { fail(e.getMessage()); } }
public LanguagesProcessImpl(Context context) { super(); this.languagesDAO = LanguaguesDAOImpl.getInstance(context); }