public final class LocalizationSetup extends Object
Modifier and Type | Method and Description |
---|---|
static void |
setUp(org.xwiki.test.TestComponentManager tcm)
Sets up localization so that all translation return their key as translation values.
|
public static void setUp(org.xwiki.test.TestComponentManager tcm) throws Exception
For instance, calling $services.localization.render('my.key')
returns "my.key"
, and calling
$services.localization.render('my.key2', 'a', 1)
returns "my.key2 [a, 1]"
.
tcm
- the stubbed Component Manager for the testException
- when a setup error occursCopyright © 2004–2021 XWiki. All rights reserved.