Assert.assertNotNull(tags);
Assert.assertEquals(tags.size(), 0);
}
private void addTagArticle() throws Exception {
final TagArticleRepository tagArticleRepository =
getTagArticleRepository();
final JSONObject tagArticle = new JSONObject();
tagArticle.put(Article.ARTICLE + "_" + Keys.OBJECT_ID, "article1 id");
tagArticle.put(Tag.TAG + "_" + Keys.OBJECT_ID, "tag1 id");
final Transaction transaction = tagArticleRepository.beginTransaction();
tagArticleRepository.add(tagArticle);
transaction.commit();
}