use of com.liferay.ide.project.core.modules.NewLiferayModuleProjectOp in project liferay-ide by liferay.
the class GradleModuleProjectTests method testProjectTemplateApi.
@Test
public void testProjectTemplateApi() throws Exception {
NewLiferayModuleProjectOp op = NewLiferayModuleProjectOp.TYPE.instantiate();
op.setProjectName("api-test");
op.setProjectProvider("gradle-module");
op.setProjectTemplateName("api");
createAndBuild(op);
}
use of com.liferay.ide.project.core.modules.NewLiferayModuleProjectOp in project liferay-ide by liferay.
the class GradleModuleProjectTests method testProjectTemplatePortletProvider.
@Test
public void testProjectTemplatePortletProvider() throws Exception {
NewLiferayModuleProjectOp op = NewLiferayModuleProjectOp.TYPE.instantiate();
op.setProjectName("portlet-provider-test");
op.setProjectProvider("gradle-module");
op.setProjectTemplateName("portlet-provider");
createAndBuild(op);
}
use of com.liferay.ide.project.core.modules.NewLiferayModuleProjectOp in project liferay-ide by liferay.
the class GradleModuleProjectTests method testProjectTemplateServiceBuilder.
@Test
public void testProjectTemplateServiceBuilder() throws Exception {
NewLiferayModuleProjectOp op = NewLiferayModuleProjectOp.TYPE.instantiate();
op.setProjectName("service-builder-test");
op.setProjectProvider("gradle-module");
op.setProjectTemplateName("service-builder");
op.setPackageName("com.liferay.test");
IProject parent = create(op);
assertTrue(parent != null && parent.exists());
IProject api = CoreUtil.getProject("service-builder-test-api");
assertTrue(api != null && api.exists());
IProject service = CoreUtil.getProject("service-builder-test-service");
assertTrue(service != null && service.exists());
api.build(IncrementalProjectBuilder.FULL_BUILD, _monitor);
service.build(IncrementalProjectBuilder.FULL_BUILD, _monitor);
IBundleProject apiBundle = LiferayCore.create(IBundleProject.class, api);
assertNotNull(apiBundle);
IPath apiOutput = apiBundle.getOutputBundle(true, _monitor);
assertNotNull(apiOutput);
assertTrue(apiOutput.toFile().exists());
assertEquals("com.liferay.test.api-1.0.0.jar", apiOutput.lastSegment());
IBundleProject serviceBundle = LiferayCore.create(IBundleProject.class, service);
IPath serviceOutput = serviceBundle.getOutputBundle(true, _monitor);
assertNotNull(serviceOutput);
assertTrue(serviceOutput.toFile().exists());
assertEquals("com.liferay.test.service-1.0.0.jar", serviceOutput.lastSegment());
}
use of com.liferay.ide.project.core.modules.NewLiferayModuleProjectOp in project liferay-ide by liferay.
the class GradleModuleProjectTests method testProjectTemplateServiceWrapper.
@Test
public void testProjectTemplateServiceWrapper() throws Exception {
NewLiferayModuleProjectOp op = NewLiferayModuleProjectOp.TYPE.instantiate();
op.setProjectName("service-wrapper-test");
op.setProjectProvider("gradle-module");
op.setProjectTemplateName("service-wrapper");
op.setServiceName("com.liferay.portal.kernel.service.UserLocalServiceWrapper");
op.setComponentName("MyServiceWrapper");
createAndBuild(op);
}
use of com.liferay.ide.project.core.modules.NewLiferayModuleProjectOp in project liferay-ide by liferay.
the class GradleModuleProjectTests method testProjectTemplateThemeContributor.
@Test
public void testProjectTemplateThemeContributor() throws Exception {
NewLiferayModuleProjectOp op = NewLiferayModuleProjectOp.TYPE.instantiate();
op.setProjectName("theme-contributor-test");
op.setProjectProvider("gradle-module");
op.setProjectTemplateName("theme-contributor");
createAndBuild(op);
}
Aggregations