use of com.liferay.ide.project.core.model.NewLiferayPluginProjectOp in project liferay-ide by liferay.
the class NewLiferayPluginProjectProfileTests method testSelectProfiles.
@Test
public void testSelectProfiles() throws Exception {
final NewLiferayPluginProjectOp op = newMavenProjectOp();
assertEquals(0, op.getSelectedProfiles().size());
}
use of com.liferay.ide.project.core.model.NewLiferayPluginProjectOp in project liferay-ide by liferay.
the class ArchetypeTests method testArchetypeDefaultValueService.
@Test
public void testArchetypeDefaultValueService() throws Exception {
final NewLiferayPluginProjectOp op = newProjectOp("test-archetype-default-value-service");
op.setProjectProvider("maven");
assertEquals("com.liferay.maven.archetypes:liferay-portlet-archetype:6.2.5", op.getArchetype().content());
op.setPortletFramework("jsf-2.x");
assertEquals("com.liferay.maven.archetypes:liferay-portlet-jsf-archetype:6.2.5", op.getArchetype().content());
op.setPortletFrameworkAdvanced("primefaces");
assertEquals("com.liferay.maven.archetypes:liferay-portlet-primefaces-archetype:6.2.5", op.getArchetype().content());
}
use of com.liferay.ide.project.core.model.NewLiferayPluginProjectOp in project liferay-ide by liferay.
the class JSFPortletProjectTests method testNewJSFPortletProject.
@Test
public void testNewJSFPortletProject() throws Exception {
NewLiferayPluginProjectOp op = newMavenProjectOp("jsf-2.x", "jsf-2.x", "jsf");
final IProject newProject = base.createProject(op);
assertNotNull(newProject);
String pomContents = CoreUtil.readStreamToString(newProject.getFile("pom.xml").getContents());
assertTrue(pomContents.contains("<artifactId>liferay-faces-bridge-impl</artifactId>"));
assertTrue(pomContents.contains("<artifactId>liferay-faces-portal</artifactId>"));
assertTrue(pomContents.contains("<artifactId>liferay-maven-plugin</artifactId>"));
assertTrue(pomContents.contains("<artifactId>portal-service</artifactId>"));
}
use of com.liferay.ide.project.core.model.NewLiferayPluginProjectOp in project liferay-ide by liferay.
the class JSFPortletProjectTests method newMavenProjectOp.
private NewLiferayPluginProjectOp newMavenProjectOp(String name, String framework, String advFramework) {
NewLiferayPluginProjectOp op = NewLiferayPluginProjectOp.TYPE.instantiate();
op.setProjectName(name);
op.setProjectProvider("maven");
op.setPortletFramework(framework);
op.setPortletFrameworkAdvanced(advFramework);
createTestBundleProfile(op);
return op;
}
use of com.liferay.ide.project.core.model.NewLiferayPluginProjectOp in project liferay-ide by liferay.
the class JSFPortletProjectTests method testNewPrimefacesPortletProject.
@Test
public void testNewPrimefacesPortletProject() throws Exception {
NewLiferayPluginProjectOp op = newMavenProjectOp("primefaces", "jsf-2.x", "primefaces");
final IProject newProject = base.createProject(op);
assertNotNull(newProject);
String pomContents = CoreUtil.readStreamToString(newProject.getFile("pom.xml").getContents());
assertTrue(pomContents.contains("<artifactId>primefaces</artifactId>"));
assertTrue(pomContents.contains("<artifactId>liferay-faces-bridge-impl</artifactId>"));
assertTrue(pomContents.contains("<artifactId>liferay-faces-portal</artifactId>"));
assertTrue(pomContents.contains("<artifactId>liferay-maven-plugin</artifactId>"));
assertTrue(pomContents.contains("<artifactId>portal-service</artifactId>"));
}
Aggregations