List of usage examples for com.liferay.portal.kernel.util PropsKeys USERS_SCREEN_NAME_SPECIAL_CHARACTERS
String USERS_SCREEN_NAME_SPECIAL_CHARACTERS
To view the source code for com.liferay.portal.kernel.util PropsKeys USERS_SCREEN_NAME_SPECIAL_CHARACTERS.
Click Source Link
From source file:com.liferay.mentions.internal.util.DefaultMentionsMatcherTest.java
License:Open Source License
@Before public void setUp() throws Exception { Field field = ReflectionUtil.getDeclaredField(PropsUtil.class, "_props"); field.set(null, ProxyUtil.newProxyInstance(ClassLoader.getSystemClassLoader(), new Class<?>[] { Props.class }, (proxy, method, args) -> { if (method.equals(Props.class.getMethod("get", String.class)) && PropsKeys.USERS_SCREEN_NAME_SPECIAL_CHARACTERS.equals(args[0])) { return _SCREEN_NAME_SPECIAL_CHARS; }//from ww w . j a v a2 s . com return null; })); _mentionsMatcher = new DefaultMentionsMatcher(); }