Search in sources :

Example 1 with MacroInterpreter

use of org.sonar.server.text.MacroInterpreter in project sonarqube by SonarSource.

the class CreateActionTest method createMacroInterpreter.

private static MacroInterpreter createMacroInterpreter() {
    MacroInterpreter macroInterpreter = mock(MacroInterpreter.class);
    doAnswer(returnsFirstArg()).when(macroInterpreter).interpret(anyString());
    return macroInterpreter;
}
Also used : MacroInterpreter(org.sonar.server.text.MacroInterpreter)

Example 2 with MacroInterpreter

use of org.sonar.server.text.MacroInterpreter in project sonarqube by SonarSource.

the class UpdateActionTest method createMacroInterpreter.

private static MacroInterpreter createMacroInterpreter() {
    MacroInterpreter macroInterpreter = mock(MacroInterpreter.class);
    doAnswer(returnsFirstArg()).when(macroInterpreter).interpret(anyString());
    return macroInterpreter;
}
Also used : MacroInterpreter(org.sonar.server.text.MacroInterpreter)

Aggregations

MacroInterpreter (org.sonar.server.text.MacroInterpreter)2