use of com.liferay.ide.project.core.modules.NewLiferayComponentOp in project liferay-ide by liferay.
the class NewLiferayComponentOpTests method testNewLiferayComponentDefaultValueServiceUnderscores.
@Test
public void testNewLiferayComponentDefaultValueServiceUnderscores() throws Exception {
NewLiferayComponentOp op = NewLiferayComponentOp.TYPE.instantiate();
op.setProjectName("my_test_project");
op.setComponentClassTemplateName("PortletActionCommand");
assertEquals("MyTestProjectPortletActionCommand", op.getComponentClassName().content(true));
}
use of com.liferay.ide.project.core.modules.NewLiferayComponentOp in project liferay-ide by liferay.
the class NewLiferayComponentOpTests method testNewLiferayComponentDefaultValueServiceIsListeningToComponentClassTemplateName.
@Test
public void testNewLiferayComponentDefaultValueServiceIsListeningToComponentClassTemplateName() throws Exception {
NewLiferayComponentOp op = NewLiferayComponentOp.TYPE.instantiate();
op.setProjectName("my.test.project");
op.setComponentClassTemplateName("PortletActionCommand");
assertEquals("MyTestProjectPortletActionCommand", op.getComponentClassName().content(true));
op.setComponentClassTemplateName("FriendlyUrlMapper");
assertEquals("MyTestProjectFriendlyUrlMapper", op.getComponentClassName().content(true));
}
Aggregations