@groovy.transform.Trait @groovy.transform.CompileStatic trait TagLibUnitTest<T> extends java.lang.Object implements GrailsWebUnitTest, ParameterizedGrailsUnitTest<T>
Modifiers | Name | Description |
---|---|---|
private boolean |
hasBeenMocked |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
applyTemplate(java.lang.String contents, java.util.Map model) Renders a template for the given contents and model |
|
void |
applyTemplate(java.io.StringWriter sw, java.lang.String template, java.util.Map params) |
|
private void |
ensureTaglibHasBeenMocked() |
|
java.lang.String |
getBeanName(java.lang.Class<?> tagLibClass) |
|
T |
getTagLib() |
|
private java.lang.Class<T> |
getTagLibTypeUnderTest() |
|
void |
mockArtefact(java.lang.Class<?> tagLibClass) Mocks a tag library, making it available to subsequent calls to controllers mocked via mockArtefact(Class) and GSPs rendered via applyTemplate(String, Map) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Renders a template for the given contents and model
contents
- The contentsmodel
- The modelMocks a tag library, making it available to subsequent calls to controllers mocked via mockArtefact(Class) and GSPs rendered via applyTemplate(String, Map)
tagLibClass
- The tag library class