Examples of BlogService


Examples of net.sourceforge.pebble.domain.BlogService

    assertTrue(blogEntry.isUnpublished());
    assertTrue(view instanceof PublishBlogEntryView);
  }

  public void testUnpublishBlogEntry() throws Exception {
    BlogService service = new BlogService();
    BlogEntry blogEntry = new BlogEntry(blog);
    blogEntry.setPublished(true);
    service.putBlogEntry(blogEntry);

    // now execute the action
    request.setParameter("entry", blogEntry.getId());
    request.setParameter("submit", "Unpublish");
    View view = action.process(request, response);
View Full Code Here

Examples of net.sourceforge.pebble.domain.BlogService

 
  publishedEntry = new BlogEntry(blog);
  publishedEntry.setTitle("This is some published entry title that is very important");
  publishedEntry.setPublished(true);

  service = new BlogService();
  service.putBlogEntry(publishedEntry);
  service.putBlogEntry(unpublishedEntry);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.