Package org.apache.wiki

Examples of org.apache.wiki.TestEngine


        throws WikiException
    {
        props.setProperty( WikiEngine.PROP_BASEURL, baseURL );
        if( prefix != null ) props.setProperty( ShortViewURLConstructor.PROP_PREFIX, prefix );
       
        testEngine = new TestEngine(props);
        URLConstructor constr = new DefaultURLConstructor();
       
        constr.initialize( testEngine, props );
       
        return constr;
View Full Code Here


    WikiPage       testPage;

    protected void setUp() throws Exception
    {
        Properties props = TestEngine.getTestProperties();
        testEngine = new TestEngine( props );
        testEngine.saveText( "TestPage", "This is a test." );
        testPage = testEngine.getPage( "TestPage" );
    }
View Full Code Here

    protected TestEngine testEngine;

    protected void setUp() throws Exception
    {
        Properties props = TestEngine.getTestProperties();
        testEngine = new TestEngine(props);
        super.setUp();

        testEngine.saveText( "WysiwygEditingRendererTest", "test page" );
        testEngine.saveText( "This Pagename Has Spaces", "This Pagename Has Spaces" );
    }
View Full Code Here

    {
        CacheManager m_cacheManager = CacheManager.getInstance();
        m_cacheManager.clearAll();
        m_cacheManager.removalAll();

        m_engine  = new TestEngine(props);
        m_manager = m_engine.getAttachmentManager();

        m_engine.saveText( NAME1, "Foobar" );
        m_engine.saveText( NAMEU, "Foobar" );
    }
View Full Code Here

   
    protected void setUp() throws Exception
    {
        CacheManager.getInstance().removalAll();
        Properties props = TestEngine.getTestProperties();
        m_engine = new TestEngine( props );
       
        m_manager = new RenderingManager();
        m_manager.initialize( m_engine, props );
    }
View Full Code Here

    protected void setUp() throws Exception
    {
        Properties props = TestEngine.getTestProperties();
        props.setProperty( WikiEngine.PROP_MATCHPLURALS, "yes" );
        m_engine = new TestEngine( props );
        resolver = m_engine.getCommandResolver();
        m_engine.saveText( "SinglePage", "This is a test." );
        m_engine.saveText( "PluralPages", "This is a test." );
    }
View Full Code Here

    }

    public void setUp()
        throws Exception
    {
        engine = new TestEngine(props);
    }
View Full Code Here

    String         wiki;
   
    protected void setUp() throws Exception
    {
        Properties props = TestEngine.getTestProperties();
        testEngine = new TestEngine( props );
        wiki = testEngine.getApplicationName();
    }
View Full Code Here

    }

    public void setUp() throws Exception
    {
        Properties props = TestEngine.getTestProperties();
        m_engine = new TestEngine( props );
        m_auth = m_engine.getAuthenticationManager();
        m_groupMgr = m_engine.getGroupManager();
        m_session = WikiSessionTest.adminSession( m_engine );
    }
View Full Code Here

     */
    public void testCustomAuthorizer() throws Exception
    {
        Properties props = TestEngine.getTestProperties();
        props.put( AuthorizationManager.PROP_AUTHORIZER, "org.apache.wiki.auth.AuthenticationManagerTest$DummyAuthorizer" );
        m_engine = new TestEngine( props );

        // Start a session without any container roles: DummyAuthorizer should ALWAYS allow AuthorizerRole
        WikiSession session = WikiSessionTest.authenticatedSession( m_engine, Users.JANNE, Users.JANNE_PASS );
        assertTrue( session.hasPrincipal( Role.ALL ) );
        assertTrue( session.hasPrincipal( Role.AUTHENTICATED ) );
View Full Code Here

TOP

Related Classes of org.apache.wiki.TestEngine

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.