Examples of IModule


Examples of org.eclipse.wst.server.core.IModule

    // First check if the module is set for automatic republish (i.e. a
    // prior publish for the application
    // failed, but the deployment info is available through the republish
    // module

    IModule module = appModule.getLocalModule();

    RepublishModule repModule = CloudFoundryPlugin.getModuleCache().getData(server.getServerOriginal())
        .untagForAutomaticRepublish(module);

    if (repModule != null) {
View Full Code Here

Examples of org.eclipse.wst.server.core.IModule

    // This step is a substitute for the Application deployment wizard
    String projectName = harness.getDefaultWebAppProjectName();
    String expectedAppName = harness.getDefaultWebAppName(appPrefix);
    getTestFixture().configureForApplicationDeployment(expectedAppName, false);

    IModule module = getModule(projectName);

    assertNotNull("Expected non-null IModule when deploying application", module);

    // Publish with non-WST publish API (i.e. publish that is not invoked by
    // WST framework)
    serverBehavior.publishAdd(module.getName(), new NullProgressMonitor());

    Collection<CloudFoundryApplicationModule> appModules = cloudServer.getExistingCloudModules();
    assertNotNull("Expected list of cloud modules after deploying: " + appPrefix, appModules);
    assertTrue("Expected one application module for " + appPrefix + " but got: " + appModules.size(),
        appModules.size() == 1);
View Full Code Here

Examples of org.eclipse.wst.server.core.IModule

    // This step is a substitute for the Application deployment wizard
    String projectName = harness.getDefaultWebAppProjectName();
    String expectedAppName = harness.getDefaultWebAppName(appPrefix);
    getTestFixture().configureForApplicationDeployment(expectedAppName, false);

    IModule module = getModule(projectName);

    assertNotNull("Expected non-null IModule when deploying application", module);

    // Publish through WST publish method
    serverBehavior.publish(IServer.PUBLISH_INCREMENTAL, new NullProgressMonitor());
View Full Code Here

Examples of org.eclipse.wst.server.core.IModule

    // Verify it is deployed
    CloudFoundryApplicationModule appModule = assertApplicationIsDeployed(prefix, IServer.STATE_STARTED);
    assertNotNull("Expected non-null Cloud Foundry application module", appModule);

    IModule module = getModule(harness.getDefaultWebAppProjectName());

    // Verify the app is running
    assertApplicationIsRunning(module, prefix);

    // Now CHECK that the expected conditions in the helper method assert to
View Full Code Here

Examples of org.eclipse.wst.server.core.IModule

        modules.length);
    int moduleState = server.getModulePublishState(modules);
    assertEquals(IServer.PUBLISH_STATE_UNKNOWN, moduleState);

    // Verify that the WST module that exists matches the app project app
    IModule module = getModule(projectName);

    assertNotNull(module);
    assertTrue(module.getName().equals(projectName));

  }
View Full Code Here

Examples of org.eclipse.wst.server.core.IModule

    assertTrue("Expected application to be stopped", appModule.getState() == Server.STATE_STOPPED);

  }

  protected void assertRemoveApplication(CloudApplication cloudApplication) throws Exception {
    IModule module = getModule(cloudApplication.getName());
    assertNotNull(module);
    serverBehavior.deleteModules(new IModule[] { module }, false, new NullProgressMonitor());

    serverBehavior.refreshModules(new NullProgressMonitor());
    List<CloudApplication> applications = serverBehavior.getApplications(new NullProgressMonitor());
View Full Code Here

Examples of org.eclipse.wst.server.core.IModule

      throws Exception {
    // Get the local WST IModule. NOTE that the PROJECT name needs to be
    // used as opposed to the
    // app name, as the project name and app name may differ, and the
    // IModule is mapped to the project.
    IModule module = getModule(harness.getDefaultWebAppProjectName());
    int moduleState = server.getModuleState(new IModule[] { module });
    assertEquals(expectedAppState, moduleState);

    // Once the application is started, verify that the Cloud module (the
    // "Enhanced" WST
View Full Code Here

Examples of org.eclipse.wst.server.core.IModule

    // Configure the test fixture for deployment.
    // This step is a substitute for the Application deployment wizard
    getTestFixture().configureForApplicationDeployment(expectedAppName, deployStopped);

    IModule module = getModule(projectName);

    assertNotNull("Expected non-null IModule when deploying application", module);

    serverBehavior.publish(IServer.PUBLISH_INCREMENTAL, new NullProgressMonitor());
View Full Code Here

Examples of org.eclipse.wst.server.core.IModule

        if (!ProjectHelper.isContentProject(project)) {
            return;
        }

        IModule module = ServerUtil.getModule(project);

        if (module == null) {
            return;
        }
View Full Code Here

Examples of org.eclipse.wst.server.core.IModule

    }
    IStructuredSelection ss = (IStructuredSelection)selection;
    JcrNode node = (JcrNode) ss.getFirstElement();
   
        IWorkbenchPage page = targetPart.getSite().getPage();
        IModule module = ServerUtil.getModule(node.getProject());
        if (module==null) {
      MessageDialog.openWarning(shell, "Cannot open browser", "Not configured for any server");
          return;
        }
        IServer[] servers = ServerUtil.getServersByModule(module, new NullProgressMonitor());
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.