use of org.mamute.dao.TagPageDAO in project mamute by caelum.
the class TagPageDAOTest method should_get_tag_page_by_tag.
@Test
public void should_get_tag_page_by_tag() {
TagPageDAO tagPages = new TagPageDAO(session);
Tag java = tag("java");
session.save(java);
tagPages.save(new TagPage(java, notMarked("aboutaboutaboutaboutaboutaboutaboutaboutaboutaboutaboutaboutaboutaboutaboutaboutaboutaboutaboutabout")));
TagPage javaPage = tagPages.findByTag(java.getName());
assertEquals(java.getName(), javaPage.getTagName());
}
Aggregations