Details
-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 3.5.4, 3.6
-
Component/s: Spring Support
-
Labels:
-
Number of attachments :
Description
A patch for jbehave-spring that allows for Java (Annotation) based Spring configurations
Included are examples using annotations based configuration
Activity
Mauro Talevi
made changes -
Field | Original Value | New Value |
---|---|---|
Summary | Update to jbehave-spring 3.5.4 to support Spring Annotation based configuration | Support Spring AnnotationConfigApplicationContext |
Affects Version/s | 3.6 [ 17721 ] |
Mauro Talevi
made changes -
Assignee | Mauro Talevi [ maurotalevi ] |
Mauro Talevi
made changes -
Status | Open [ 1 ] | In Progress [ 3 ] |
Mauro Talevi
made changes -
Status | In Progress [ 3 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Mauro Talevi
made changes -
Fix Version/s | 3.7 [ 18390 ] |
Hi Boris,
I've upgraded jbehave-spring to version 3.1.x (but still keeping backward compat with 2.5.x).
As for adding support for the AnnotationConfigApplicationContext, my preference would be do it via the SpringApplicationContextFactory (they are both instances of ConfigurableApplicationContext).
Two options: either we overload the meaning of "resources" for both XML and annotated class configuration resources or we use a separate list for the annotated classes (in the latter case we cannot use the varargs). I'd be tempted to go for the former overloading option. We could pass in as the "resource" the fully qualified class name and let the classloader load the class which is pass on to the AnnotationConfigApplicationContext.
Comments welcome! Either way, it'd be useful if you could fork a repo on Github (from https://github.com/jbehave/jbehave-core) and share commit links which I can pull more easily.