Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1305

Defaults values for @SpringConfiguration and @SpringAnnotationConfiguration

XMLWordPrintable

      The idea is similar to the 'convention over configuration' approach from Spring Test.

      When configuring test with @SpringConfiguration when no XML configuration will specified the extension by default should try to load file with exact same name as the test class and additional '-context.xml' suffix e.g.

      For class org.sample.Test the default resource location should be org/sample/Test-context.xml.

      In case of @SpringAnnotationConfiguration when no class or package has been specified the extension by default should scan for static (non final) class annoated with @Configuration and use it when instantiating the AnnotationApplicationContext.

            jmnarloch Jakub Narloch (Inactive)
            jmnarloch Jakub Narloch (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: