Package net.sourceforge.pebble.dao.mock

Examples of net.sourceforge.pebble.dao.mock.MockDAOFactory


  protected Blog blog1, blog2;

  protected void setUp() throws Exception {
    super.setUp();

    DAOFactory.setConfiguredFactory(new MockDAOFactory());

    PebbleContext.getInstance().getConfiguration().setUrl("http://www.yourdomain.com/blog/");
    BlogManager.getInstance().setMultiBlog(true);

    PebbleContext.getInstance().getConfiguration().setSecurityRealm(new MockSecurityRealm());
View Full Code Here


  protected Blog blog;

  protected void setUp() throws Exception {
    super.setUp();

    DAOFactory.setConfiguredFactory(new MockDAOFactory());
    BlogManager.getInstance().setMultiBlog(false);

    File blogDirectory = new File(TEST_BLOG_LOCATION, "blogs/default");
    blogDirectory.mkdir();
    blog = new Blog(blogDirectory.getAbsolutePath());
View Full Code Here

TOP

Related Classes of net.sourceforge.pebble.dao.mock.MockDAOFactory

Copyright © 2018 www.massapicom. 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.