service.putBlogEntry(blogEntry);
assertEquals("/viewBlogEntry.action?entry=" + blogEntry.getId(), transformer.getUri(blog.getPermalinkProvider().getPermalink(blogEntry), blog));
}
public void testBlogEntryWithTitlePermalinkProvider() throws Exception {
blog.setPermalinkProvider(new TitlePermalinkProvider());
BlogService service = new BlogService();
BlogEntry blogEntry = new BlogEntry(blog);
blogEntry.setTitle("Some title");
service.putBlogEntry(blogEntry);