Package org.brixcms.workspace

Examples of org.brixcms.workspace.WorkspaceManager.createWorkspace()


    public void test() throws Exception {
        WorkspaceManager remote = EasyMock.createMock(WorkspaceManager.class);

        Workspace workspace = EasyMock.createMock(Workspace.class);

        EasyMock.expect(remote.createWorkspace()).andReturn(workspace);
        workspace.delete();

        EasyMock.replay(remote, workspace);

        Registry registry = LocateRegistry.createRegistry(10000);
View Full Code Here


        registry.rebind("wm", stub);

        RemoteWorkspaceManager client = (RemoteWorkspaceManager) registry.lookup("wm");
        WorkspaceManager local = new ClientWorkspaceManager(client);

        Workspace w = local.createWorkspace();
        w.delete();
        EasyMock.verify(remote, workspace);

        UnicastRemoteObject.unexportObject(server, true);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.