Package net.sourceforge.pebble.security

Examples of net.sourceforge.pebble.security.MockSecurityRealm


    DAOFactory.setConfiguredFactory(new MockDAOFactory());

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

    PebbleContext.getInstance().getConfiguration().setSecurityRealm(new MockSecurityRealm());

    // and set up some blogs
    File blogDirectory1 = new File(TEST_BLOG_LOCATION, "blogs/blog1");
    blogDirectory1.mkdir();
    blog1 = new Blog(blogDirectory1.getAbsolutePath());
View Full Code Here


    Configuration config = new Configuration();
    config.setDataDirectory(TEST_BLOG_LOCATION.getAbsolutePath());
    config.setUrl("http://www.yourdomain.com/blog/");
    PebbleContext.getInstance().setConfiguration(config);

    PebbleContext.getInstance().getConfiguration().setSecurityRealm(new MockSecurityRealm());

    BlogManager.getInstance().addBlog(blog);
    blog.start();
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.pebble.security.MockSecurityRealm

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.