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);
}
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);
}
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);
}
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);
}
Aggregations