////
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
////

The testing framework provides and initializes a number of properties that
are directly accessible unit tests.  The link:{api}index.html[javadocs] for the
various traits describe those properties.  Some particular properties of interest:

== Properties Available In All Unit Tests

- link:{api}org/grails/testing/GrailsUnitTest.html#getMessageSource()[messageSource]
- link:{api}org/grails/testing/GrailsUnitTest.html#getGrailsApplication()[grailsApplication]
- link:{api}org/grails/testing/GrailsUnitTest.html#getApplicationContext()[applicationContext]
- link:{api}org/grails/testing/GrailsUnitTest.html#getConfig()[config]

== Properties Available In All Web Unit Tests (Controller, Interceptor, Taglib, UrlMappings)

- link:{api}grails/testing/web/GrailsWebUnitTest.html#getRequest()[request]
- link:{api}grails/testing/web/GrailsWebUnitTest.html#getResponse()[response]
- link:{api}grails/testing/web/GrailsWebUnitTest.html#getServletContext()[servletContext]
- link:{api}grails/testing/web/GrailsWebUnitTest.html#getViews()[views]
- link:{api}grails/testing/web/GrailsWebUnitTest.html#getSession()[session]
- link:{api}grails/testing/web/GrailsWebUnitTest.html#getStatus()[status]
- link:{api}grails/testing/web/GrailsWebUnitTest.html#getParams()[params]
- link:{api}grails/testing/web/GrailsWebUnitTest.html#getFlash()[flash]

== Controller Unit Test Properties

- link:{api}grails/testing/web/controllers/ControllerUnitTest.html#getController()[controller]
- link:{api}grails/testing/web/controllers/ControllerUnitTest.html#getView()[view]
- link:{api}grails/testing/web/controllers/ControllerUnitTest.html#getModel()[model]

== Interceptor Unit Test Properties

- link:{api}grails/testing/web/interceptor/InterceptorUnitTest.html#getInterceptor()[interceptor]

== Service Unit Test Properties

- link:{api}grails/testing/services/ServiceUnitTest.html#getService()[service]

== Tag Library Unit Test Properties

- link:{api}grails/testing/web/taglib/TagLibUnitTest.html#getTagLib()[tagLib]

== Domain Class Unit Test Properties  

- link:{api}grails/testing/gorm/DomainUnitTest.html#getDomain()[domain]
