List of usage examples for com.liferay.portal.kernel.util HtmlUtil HtmlUtil
HtmlUtil
From source file:com.liferay.dynamic.data.lists.form.web.internal.notification.DDLFormEmailNotificationSenderTest.java
License:Open Source License
protected void setUpHtmlUtil() { HtmlUtil htmlUtil = new HtmlUtil(); htmlUtil.setHtml(_html);//from ww w . j av a 2s .c o m when(_html.escape(Matchers.anyString())).then(new Answer<String>() { @Override public String answer(InvocationOnMock invocationOnMock) throws Throwable { return invocationOnMock.getArgumentAt(0, String.class); } }); }
From source file:com.liferay.dynamic.data.mapping.BaseDDMTestCase.java
License:Open Source License
protected void setUpHtmlUtil() { HtmlUtil htmlUtil = new HtmlUtil(); htmlUtil.setHtml(new HtmlImpl()); }
From source file:com.liferay.dynamic.data.mapping.form.field.type.DefaultDDMFormFieldValueRendererTest.java
License:Open Source License
protected void setUpHtmlUtil() { HtmlUtil htmlUtil = new HtmlUtil(); htmlUtil.setHtml(_html); }
From source file:com.liferay.dynamic.data.mapping.form.web.internal.notification.DDLFormEmailNotificationSenderTest.java
License:Open Source License
protected void setUpHtmlUtil() { HtmlUtil htmlUtil = new HtmlUtil(); htmlUtil.setHtml(_html);/*from w ww. ja v a 2 s . c o m*/ PowerMockito.when(_html.escape(Matchers.anyString())).then(new Answer<String>() { @Override public String answer(InvocationOnMock invocationOnMock) throws Throwable { return invocationOnMock.getArgumentAt(0, String.class); } }); }
From source file:com.liferay.dynamic.data.mapping.render.DDMFormFieldValueRendererTest.java
License:Open Source License
@Override protected void setUpHtmlUtil() { HtmlUtil htmlUtil = new HtmlUtil(); htmlUtil.setHtml(new HtmlImpl()); }
From source file:com.liferay.message.boards.parser.bbcode.internal.HtmlBBCodeTranslatorImplTest.java
License:Open Source License
@Before public void setUp() { HtmlUtil htmlUtil = new HtmlUtil(); htmlUtil.setHtml(new HtmlImpl()); }
From source file:com.liferay.wiki.engine.creole.TranslationToXHTMLTest.java
License:Open Source License
@Before public void setUp() { HtmlUtil htmlUtil = new HtmlUtil(); htmlUtil.setHtml(new HtmlImpl()); _wikiEngineCreoleComponentProvider = CreoleTestUtil.getWikiEngineCreoleComponentProvider(); }
From source file:com.liferay.wiki.engine.creole.XhtmlTranslatorTest.java
License:Open Source License
@BeforeClass public static void setUpClass() { HtmlUtil htmlUtil = new HtmlUtil(); htmlUtil.setHtml(new HtmlImpl()); }
From source file:org.mimacom.commons.liferay.adapter523.LiferayToolsImpl.java
License:Apache License
public void initLiferay() { new FileUtil().setFile(new FileImpl()); new SAXReaderUtil().setSAXReader(new SAXReaderImpl()); new PortalUtil().setPortal(new PortalImpl()); new HtmlUtil().setHtml(new HtmlImpl()); ModelHintsImpl modelHints = new ModelHintsImpl(); modelHints.afterPropertiesSet();/*from w w w . jav a2 s . c o m*/ new ModelHintsUtil().setModelHints(modelHints); }
From source file:org.mimacom.commons.liferay.adapter526.LiferayToolsImpl.java
License:Apache License
public void initLiferay() { new FileUtil().setFile(new FileImpl()); new SAXReaderUtil().setSAXReader(new SAXReaderImpl()); new PortalUtil().setPortal(new PortalImpl()); new HtmlUtil().setHtml(new HtmlImpl()); ModelHintsImpl modelHints = new ModelHintsImpl(); modelHints.afterPropertiesSet();//ww w . j a v a 2 s . c om new ModelHintsUtil().setModelHints(modelHints); new FastDateFormatFactoryUtil().setFastDateFormatFactory(new FastDateFormatFactoryImpl()); }