use of com.liferay.ide.project.core.jsf.NewLiferayJSFModuleProjectOp in project liferay-ide by liferay.
the class NewLiferayJSFModuleProjectOpTests method testMavenRichFacesNewLiferayJSFModuleProjectOp.
@Test
public void testMavenRichFacesNewLiferayJSFModuleProjectOp() throws Exception {
NewLiferayJSFModuleProjectOp existedProjectop = NewLiferayJSFModuleProjectOp.TYPE.instantiate();
existedProjectop.setProjectProvider("maven-jsf");
existedProjectop.setProjectName("Test7");
existedProjectop.setTemplateName("richfaces");
Status exStatus = NewLiferayJSFModuleProjectOpMethods.execute(existedProjectop, ProgressMonitorBridge.create(new NullProgressMonitor()));
assertTrue(exStatus.ok());
IProject existedProject = CoreUtil.getProject(existedProjectop.getProjectName().content());
assertNotNull(existedProject);
}
use of com.liferay.ide.project.core.jsf.NewLiferayJSFModuleProjectOp in project liferay-ide by liferay.
the class NewLiferayJSFModuleProjectOpTests method testMavenJSFStandardNewLiferayJSFModuleProjectOp.
@Test
public void testMavenJSFStandardNewLiferayJSFModuleProjectOp() throws Exception {
NewLiferayJSFModuleProjectOp existedProjectop = NewLiferayJSFModuleProjectOp.TYPE.instantiate();
existedProjectop.setProjectProvider("maven-jsf");
existedProjectop.setProjectName("Test11");
existedProjectop.setTemplateName("jsf");
Status exStatus = NewLiferayJSFModuleProjectOpMethods.execute(existedProjectop, ProgressMonitorBridge.create(new NullProgressMonitor()));
assertTrue(exStatus.ok());
IProject existedProject = CoreUtil.getProject(existedProjectop.getProjectName().content());
assertNotNull(existedProject);
}
use of com.liferay.ide.project.core.jsf.NewLiferayJSFModuleProjectOp in project liferay-ide by liferay.
the class NewLiferayJSFModuleProjectOpTests method testNewLiferayJSFModuleProjectOpProjectExisted.
@Test
public void testNewLiferayJSFModuleProjectOpProjectExisted() throws Exception {
NewLiferayJSFModuleProjectOp existedProjectop = NewLiferayJSFModuleProjectOp.TYPE.instantiate();
existedProjectop.setProjectProvider("gradle-jsf");
existedProjectop.setProjectName("Test2");
existedProjectop.setTemplateName("richfaces");
Status exStatus = NewLiferayJSFModuleProjectOpMethods.execute(existedProjectop, ProgressMonitorBridge.create(new NullProgressMonitor()));
assertTrue(exStatus.ok());
IProject existedProject = CoreUtil.getProject(existedProjectop.getProjectName().content());
assertNotNull(existedProject);
NewLiferayJSFModuleProjectOp newProjectNameop = NewLiferayJSFModuleProjectOp.TYPE.instantiate();
newProjectNameop.setProjectProvider("gradle-jsf");
newProjectNameop.setProjectName("Test2");
Status projectNameExistedValidationStatus = newProjectNameop.getProjectName().validation();
assertEquals(false, projectNameExistedValidationStatus.ok());
}
use of com.liferay.ide.project.core.jsf.NewLiferayJSFModuleProjectOp in project liferay-ide by liferay.
the class NewLiferayJSFModuleProjectOpTests method testMavenLiferayFacesNewLiferayJSFModuleProjectOp.
@Test
public void testMavenLiferayFacesNewLiferayJSFModuleProjectOp() throws Exception {
NewLiferayJSFModuleProjectOp existedProjectop = NewLiferayJSFModuleProjectOp.TYPE.instantiate();
existedProjectop.setProjectProvider("maven-jsf");
existedProjectop.setProjectName("Test9");
existedProjectop.setTemplateName("icefaces");
Status exStatus = NewLiferayJSFModuleProjectOpMethods.execute(existedProjectop, ProgressMonitorBridge.create(new NullProgressMonitor()));
assertTrue(exStatus.ok());
IProject existedProject = CoreUtil.getProject(existedProjectop.getProjectName().content());
assertNotNull(existedProject);
}
use of com.liferay.ide.project.core.jsf.NewLiferayJSFModuleProjectOp in project liferay-ide by liferay.
the class NewLiferayJSFModuleProjectOpTests method testPrimefacesGradleJSFProject.
@Test
public void testPrimefacesGradleJSFProject() throws Exception {
NewLiferayJSFModuleProjectOp op = NewLiferayJSFModuleProjectOp.TYPE.instantiate();
op.setProjectProvider("gradle-jsf");
op.setProjectName("Test16");
op.setTemplateName("primefaces");
Status status = NewLiferayJSFModuleProjectOpMethods.execute(op, ProgressMonitorBridge.create(new NullProgressMonitor()));
assertTrue(status.ok());
waitForBuildAndValidation2();
IProject project = CoreUtil.getProject("Test16");
assertNotNull(project);
}
Aggregations