public class VelocityTemplatingEngineMocks extends Object
VelocityTemplatingEngine
interface.Constructor and Description |
---|
VelocityTemplatingEngineMocks() |
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Supplier<VelocityTemplatingEngine> |
alwaysOutput(String output)
Returns a builder that returns VelocityTemplatingEngine instances that will always render the specified
output string.
|
static com.google.common.base.Supplier<VelocityTemplatingEngine> |
alwaysThrow(Exception expectedException)
Returns a builder that returns VelocityTemplatingEngine instances that will always throw the specified
exception on rendering.
|
public static com.google.common.base.Supplier<VelocityTemplatingEngine> alwaysOutput(String output)
output
- The output string to be rendered.public static com.google.common.base.Supplier<VelocityTemplatingEngine> alwaysThrow(Exception expectedException)
expectedException
- The exception to be thrown on rendering.Copyright © 2002-2015 Atlassian. All Rights Reserved.