@groovy.transform.Trait @groovy.transform.CompileStatic trait JsonViewUnitTest extends GrailsUnitTest
Modifiers | Name | Description |
---|---|---|
static class |
JsonViewUnitTest.TestHttpResponse |
Modifiers | Name | Description |
---|---|---|
private static MappingContext |
_mappingContext |
|
private static JsonViewTemplateEngine |
_templateEngine |
Type Params | Return Type | Name and description |
---|---|---|
|
MappingContext |
getMappingContext() |
|
JsonViewTemplateEngine |
getTemplateEngine() |
|
private JsonRenderResult |
produceResult(groovy.text.Template template, java.util.Map model, groovy.lang.Closure configurer) |
|
JsonRenderResult |
render(java.lang.String source) Render a template for the given source |
|
JsonRenderResult |
render(java.lang.String source, java.util.Map model) Render a template for the given source |
|
JsonRenderResult |
render(java.lang.String source, java.util.Map model, groovy.lang.Closure configurer) Render a template for the given source |
|
JsonRenderResult |
render(java.lang.String source, groovy.lang.Closure configurer) Render a template for the given source |
|
JsonRenderResult |
render(java.util.Map arguments) Render one of the GSON views in the grails-app/views directory for the given arguments |
|
JsonRenderResult |
render(java.util.Map arguments, groovy.lang.Closure configurer) Render one of the GSON views in the grails-app/views directory for the given arguments |
Render a template for the given source
source
- The raw source of the templatemodel
- The modelRender a template for the given source
source
- The raw source of the templatemodel
- The modelRender a template for the given source
source
- The raw source of the templatemodel
- The modelconfigurer
- The configurerRender a template for the given source
source
- The raw source of the templatemodel
- The modelconfigurer
- The configurerRender one of the GSON views in the grails-app/views directory for the given arguments
arguments
- The named arguments: 'template', 'view' and 'model'Render one of the GSON views in the grails-app/views directory for the given arguments
arguments
- The named arguments: 'template', 'view' and 'model'configurer
- The configurer for modifying the request state of the view