List of usage examples for com.liferay.portal.kernel.util HtmlUtil setHtml
public void setHtml(Html html)
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); when(_html.escape(Matchers.anyString())).then(new Answer<String>() { @Override//w w w. j a v a2 s .c o m 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); PowerMockito.when(_html.escape(Matchers.anyString())).then(new Answer<String>() { @Override//from ww w . j av a 2 s . c o m 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()); }