Skip to content
Snippets Groups Projects
Commit 99a869dc authored by Thomas Mortagne's avatar Thomas Mortagne
Browse files

XWIKI-15140: Allow giving a chain of translations keys fallbacks to the localization script service

parent 82c4317e
No related branches found
Tags 6.12.0-rc.3
No related merge requests found
......@@ -25,7 +25,7 @@
import org.xwiki.script.service.ScriptService;
import org.xwiki.test.TestComponentManager;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
......@@ -52,7 +52,7 @@ public static void setUp(TestComponentManager tcm) throws Exception
{
LocalizationScriptService lss = mock(LocalizationScriptService.class);
tcm.registerComponent(ScriptService.class, "localization", lss);
when(lss.render(any())).thenAnswer(
when(lss.render(anyString())).thenAnswer(
new Answer<String>() {
@Override
public String answer(InvocationOnMock invocationOnMock) throws Throwable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment