Package org.apache.wiki.dav.items

Examples of org.apache.wiki.dav.items.DavItem


    public void testDirURL()
        throws Exception
    {
        engine.saveText("TestPage", "foobar");
   
        DavItem di = m_provider.getItem( new DavPath("") );
   
        assertNotNull( "No di", di );
        assertTrue( "DI is of wrong type", di instanceof DirectoryItem );
        assertEquals("URL", "http://localhost/attach/", di.getHref() );
    }
View Full Code Here


    public void testDirURL2()
        throws Exception
    {
        engine.saveText("TestPage", "foobar");

        DavItem di = m_provider.getItem( new DavPath("TestPage/") );

        assertNotNull( "No di", di );
        assertTrue( "DI is of wrong type", di instanceof DirectoryItem );
        assertEquals("URL", "http://localhost/attach/TestPage/", di.getHref() );
    }
View Full Code Here

    public void testGetPageURL()
    throws Exception
    {
        engine.saveText("TestPage", "foobar");
           
        DavItem di = m_provider.getItem( new DavPath("t/TestPage.html") );
           
        assertNotNull( "No di", di );
        assertEquals("URL", "http://localhost/dav/html/t/TestPage.html", di.getHref() );
    }
View Full Code Here

    public void testDirURL()
    throws Exception
    {
        engine.saveText("TestPage", "foobar");
       
        DavItem di = m_provider.getItem( new DavPath("") );
       
        assertNotNull( "No di", di );
        assertTrue( "DI is of wrong type", di instanceof DirectoryItem );
        assertEquals("URL", "http://localhost/dav/html/", di.getHref() );
    }
View Full Code Here

    public void testDirURL2()
    throws Exception
    {
        engine.saveText("TestPage", "foobar");

        DavItem di = m_provider.getItem( new DavPath("t/") );

        assertNotNull( "No di", di );
        assertTrue( "DI is of wrong type", di instanceof DirectoryItem );
        assertEquals("URL", "http://localhost/dav/html/t/", di.getHref() );
    }
View Full Code Here

TOP

Related Classes of org.apache.wiki.dav.items.DavItem

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.