Search in sources :

Example 1 with FacetedMavenProject

use of com.liferay.ide.maven.core.FacetedMavenProject in project liferay-ide by liferay.

the class LiferayMavenProjectConfiguratorTest method testWarPluginNoWarSourceDirConfigured.

@Test
public void testWarPluginNoWarSourceDirConfigured() throws Exception {
    IProject project = importProject("projects/configurators/bad-war-config/pom.xml");
    assertNotNull(project);
    IMavenProjectFacade facade = MavenPlugin.getMavenProjectRegistry().create(project, monitor);
    assertNotNull(facade);
    waitForJobsToComplete();
    assertTrue(LiferayCore.create(project) instanceof FacetedMavenProject);
}
Also used : FacetedMavenProject(com.liferay.ide.maven.core.FacetedMavenProject) IMavenProjectFacade(org.eclipse.m2e.core.project.IMavenProjectFacade) IProject(org.eclipse.core.resources.IProject) Test(org.junit.Test)

Example 2 with FacetedMavenProject

use of com.liferay.ide.maven.core.FacetedMavenProject in project liferay-ide by liferay.

the class LiferayMavenProjectConfiguratorTest method testLiferayFacetNoLiferayPluginConfigured.

@Test
public void testLiferayFacetNoLiferayPluginConfigured() throws Exception {
    IProject project = importProject("projects/configurators/default-webapp-no-liferay-plugin/pom.xml");
    assertNotNull(project);
    IMavenProjectFacade facade = MavenPlugin.getMavenProjectRegistry().create(project, monitor);
    assertNotNull(facade);
    assertTrue(LiferayCore.create(project) instanceof FacetedMavenProject);
}
Also used : FacetedMavenProject(com.liferay.ide.maven.core.FacetedMavenProject) IMavenProjectFacade(org.eclipse.m2e.core.project.IMavenProjectFacade) IProject(org.eclipse.core.resources.IProject) Test(org.junit.Test)

Example 3 with FacetedMavenProject

use of com.liferay.ide.maven.core.FacetedMavenProject in project liferay-ide by liferay.

the class LiferayMavenProjectConfiguratorTest method testLiferayFacetNoLiferayPluginWarPluginConfigured.

@Test
public void testLiferayFacetNoLiferayPluginWarPluginConfigured() throws Exception {
    IProject project = importProject("projects/configurators/webapp-alternate-webapp-folder/pom.xml");
    assertNotNull(project);
    IMavenProjectFacade facade = MavenPlugin.getMavenProjectRegistry().create(project, monitor);
    assertNotNull(facade);
    waitForJobsToComplete();
    assertTrue(LiferayCore.create(project) instanceof FacetedMavenProject);
}
Also used : FacetedMavenProject(com.liferay.ide.maven.core.FacetedMavenProject) IMavenProjectFacade(org.eclipse.m2e.core.project.IMavenProjectFacade) IProject(org.eclipse.core.resources.IProject) Test(org.junit.Test)

Example 4 with FacetedMavenProject

use of com.liferay.ide.maven.core.FacetedMavenProject in project liferay-ide by liferay.

the class LiferayMavenProjectConfiguratorTest method testLiferayFacetNotConfigured.

@Test
public void testLiferayFacetNotConfigured() throws Exception {
    IProject project = importProject("projects/configurators/webapp-1/pom.xml");
    assertNotNull(project);
    IMavenProjectFacade facade = MavenPlugin.getMavenProjectRegistry().create(project, monitor);
    assertNotNull(facade);
    assertFalse(LiferayCore.create(project) instanceof FacetedMavenProject);
}
Also used : FacetedMavenProject(com.liferay.ide.maven.core.FacetedMavenProject) IMavenProjectFacade(org.eclipse.m2e.core.project.IMavenProjectFacade) IProject(org.eclipse.core.resources.IProject) Test(org.junit.Test)

Aggregations

FacetedMavenProject (com.liferay.ide.maven.core.FacetedMavenProject)4 IProject (org.eclipse.core.resources.IProject)4 IMavenProjectFacade (org.eclipse.m2e.core.project.IMavenProjectFacade)4 Test (org.junit.Test)4