use of com.liferay.ide.project.core.modules.NewLiferayModuleProjectOp in project liferay-ide by liferay.
the class NewLiferayModuleProjectOpTests method testNewLiferayModuleProjectNameValidataionService.
@Test
public void testNewLiferayModuleProjectNameValidataionService() throws Exception {
NewLiferayModuleProjectOp op = NewLiferayModuleProjectOp.TYPE.instantiate();
op.setProjectName("my-test-project");
assertTrue(op.validation().ok());
op.setProjectName("1");
assertTrue(op.getProjectName().validation().ok());
op.setProjectName("a");
assertTrue(op.getProjectName().validation().ok());
op.setProjectName("A");
assertTrue(op.getProjectName().validation().ok());
op.setProjectName("my-test-project-");
assertFalse(op.getProjectName().validation().ok());
op.setProjectName("my-test-project.");
assertFalse(op.getProjectName().validation().ok());
op.setProjectName("my-test-project_");
assertFalse(op.getProjectName().validation().ok());
}
use of com.liferay.ide.project.core.modules.NewLiferayModuleProjectOp in project liferay-ide by liferay.
the class NewLiferayModuleProjectOpTests method testNewLiferayModuleProjectDefaultValueServiceUnderscores.
@Test
@Ignore
public void testNewLiferayModuleProjectDefaultValueServiceUnderscores() throws Exception {
NewLiferayModuleProjectOp op = NewLiferayModuleProjectOp.TYPE.instantiate();
op.setProjectName("my_test_project");
op.setProjectTemplateName("portlet");
assertEquals("MyTestProject", op.getComponentName().content(true));
}
use of com.liferay.ide.project.core.modules.NewLiferayModuleProjectOp in project liferay-ide by liferay.
the class GradleModuleProjectTests method testProjectTemplateTheme.
@Test
public void testProjectTemplateTheme() throws Exception {
NewLiferayModuleProjectOp op = NewLiferayModuleProjectOp.TYPE.instantiate();
op.setProjectName("theme-test");
op.setProjectProvider("gradle-module");
op.setProjectTemplateName("theme");
createAndBuild(op);
}
use of com.liferay.ide.project.core.modules.NewLiferayModuleProjectOp in project liferay-ide by liferay.
the class GradleModuleProjectTests method testProjectTemplateActivator.
@Test
public void testProjectTemplateActivator() throws Exception {
NewLiferayModuleProjectOp op = NewLiferayModuleProjectOp.TYPE.instantiate();
op.setProjectName("activator-test");
op.setProjectProvider("gradle-module");
op.setProjectTemplateName("activator");
createAndBuild(op);
}
use of com.liferay.ide.project.core.modules.NewLiferayModuleProjectOp in project liferay-ide by liferay.
the class GradleModuleProjectTests method testProjectTemplateNpmMetaljsPortlet.
@Test
public void testProjectTemplateNpmMetaljsPortlet() throws Exception {
NewLiferayModuleProjectOp op = NewLiferayModuleProjectOp.TYPE.instantiate();
op.setProjectName("npm-metaljs-portlet-test");
op.setProjectProvider("gradle-module");
op.setProjectTemplateName("npm-metaljs-portlet");
createAndBuild(op);
}
Aggregations