예제 #1
0
  public void init(Workspace workspace) {
    for (int c = 0; c < workspace.getProjectCount(); c++) {
      Project project = workspace.getProjectAt(c);
      monitorProject(project);
    }

    workspace.addWorkspaceListener(workspaceListener);
  }
예제 #2
0
  @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());
    }
  }