Package net.sourceforge.pebble

Examples of net.sourceforge.pebble.Configuration


    Theme theme = new Theme(blog, "user-default", TEST_BLOG_LOCATION.getAbsolutePath());
    blog.setEditableTheme(theme);
    // There is some code that does i18n and runs assertions assuming that the locale is English
    blog.setProperty(Blog.LANGUAGE_KEY, "en");

    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);
View Full Code Here

TOP

Related Classes of net.sourceforge.pebble.Configuration

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.