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