Package org.codehaus.swizzle.confluence

Examples of org.codehaus.swizzle.confluence.Space


        Assert.assertTrue(found);
    }

    public void testAddDuplicatedSpace() throws Exception
    {
        Space space = new Space();
        space.setKey(String.format("%s-%d", TestConstants.TEST_PREFIX, Math.abs(random.nextInt())));
        space.setName("TEST Space");

        try {
            space = rpc.addSpace(space);
            space = rpc.addSpace(space);
            Assert.fail();
View Full Code Here


            System.out.format("User admin can always access everything\n");
            return;
        }

        try {
            Space space = rpc.getSpace(TestConstants.SPACE_WITH_NO_ACCESS_RIGHTS);
        } catch (XmlRpcException e) {
        }
    }
View Full Code Here

public class SpacesTest extends AbstractXmlRpcTestCase
{
    public void testAddRemoveSpace() throws Exception
    {
        String spaceKey = "TestSpace" + (new Random()).nextInt(10000);
        Space space = new Space();
        space.setKey(spaceKey);
        space.setName("Some Name");
        rpc.addSpace(space);

        Space spaceSummary = rpc.getSpace(spaceKey);

        assertEquals(spaceKey, spaceSummary.getKey());

        rpc.removeSpace(spaceKey);

        List spaces = rpc.getSpaces();
        boolean found = false;
View Full Code Here

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

        spaceKey = "SomeContainerSpace";
        Space space = new Space();
        space.setKey(spaceKey);
        space.setName("Some Name");

        try {
            rpc.addSpace(space);
        } catch (Exception e) {
            // Now we throw exception if the space already exists
View Full Code Here

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

        spaceKey = "SomeSpaceReally";
        Space space = new Space();
        space.setKey(spaceKey);
        space.setName("Some Name");

        rpc.addSpace(space);

        String pageTitle = "SomePage";
        Page p = new Page();
View Full Code Here

TOP

Related Classes of org.codehaus.swizzle.confluence.Space

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.