public void init(Workspace workspace) { for (int c = 0; c < workspace.getProjectCount(); c++) { Project project = workspace.getProjectAt(c); monitorProject(project); } workspace.addWorkspaceListener(workspaceListener); }
@Test public void testWorkspaceImpl() throws Exception { Workspace workspace = WorkspaceFactory.getInstance() .openWorkspace( System.getProperty("user.home", ".") + File.separatorChar + SoapUI.DEFAULT_WORKSPACE_FILE, null); for (int c = 0; c < workspace.getProjectCount(); c++) { assertNotNull(workspace.getProjectAt(c).getName()); } }