use of com.liferay.ide.project.core.modules.NewLiferayModuleProjectOp in project liferay-ide by liferay.
the class MavenModuleProjectTests method testNewLiferayMavenModuleMVCPortletProjectWithDots.
@Test
public void testNewLiferayMavenModuleMVCPortletProjectWithDots() throws Exception {
NewLiferayModuleProjectOp op = NewLiferayModuleProjectOp.TYPE.instantiate();
op.setProjectName("foo.bar");
op.setProjectProvider("maven-module");
IProject project = create(op);
verifyProject(project);
}
use of com.liferay.ide.project.core.modules.NewLiferayModuleProjectOp in project liferay-ide by liferay.
the class MavenModuleProjectTests method testThemeProjectComponentConfiguration.
@Test
public void testThemeProjectComponentConfiguration() throws Exception {
NewLiferayModuleProjectOp op = NewLiferayModuleProjectOp.TYPE.instantiate();
op.setProjectName("maven-theme-component-test");
op.setProjectProvider("maven-module");
op.setProjectTemplateName("theme");
op.execute(ProgressMonitorBridge.create(new NullProgressMonitor()));
IProject project = CoreUtil.getProject("maven-theme-component-test");
assertNotNull(project);
IBundleProject bundleProject = LiferayCore.create(IBundleProject.class, project);
assertNotNull(bundleProject);
}
use of com.liferay.ide.project.core.modules.NewLiferayModuleProjectOp in project liferay-ide by liferay.
the class MavenModuleProjectTests method testProjectTemplateApiWithInvalidPackageName.
@Test
public void testProjectTemplateApiWithInvalidPackageName() throws Exception {
NewLiferayModuleProjectOp op = NewLiferayModuleProjectOp.TYPE.instantiate();
op.setProjectName("api-test-1");
op.setProjectProvider("maven-module");
op.setProjectTemplateName("api");
assertFalse(op.validation().ok());
assertTrue(op.validation().message().contains("not a valid Java identifier"));
op.setPackageName("api.test.one");
assertTrue(op.validation().message(), op.validation().ok());
createAndBuild(op);
}
use of com.liferay.ide.project.core.modules.NewLiferayModuleProjectOp in project liferay-ide by liferay.
the class MavenModuleProjectTests method testProjectTemplatePanelApp.
@Test
public void testProjectTemplatePanelApp() throws Exception {
NewLiferayModuleProjectOp op = NewLiferayModuleProjectOp.TYPE.instantiate();
op.setProjectName("panel-app-test");
op.setProjectProvider("maven-module");
op.setProjectTemplateName("panel-app");
createAndBuild(op);
}
use of com.liferay.ide.project.core.modules.NewLiferayModuleProjectOp in project liferay-ide by liferay.
the class MavenModuleProjectTests method testProjectTemplateContentTargetingTrackingAction.
@Test
public void testProjectTemplateContentTargetingTrackingAction() throws Exception {
NewLiferayModuleProjectOp op = NewLiferayModuleProjectOp.TYPE.instantiate();
op.setProjectName("content-targeting-tracking-action-test");
op.setProjectProvider("maven-module");
op.setProjectTemplateName("content-targeting-tracking-action");
createAndBuild(op);
}
Aggregations