Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Resolving steps of referenced jars #9

Merged
merged 6 commits into from
Feb 28, 2013
Merged

Fix: Resolving steps of referenced jars #9

merged 6 commits into from
Feb 28, 2013

Conversation

dertseha
Copy link
Contributor

This code fixes #5, handling the case when steps are provided in jars from dependencies, where annotations are identified with the full qualified name.

Code changes in a gist:

  • Extracted step candidate calculation into dedicated MethodToStepCandidateReducer class
  • Added unit tests for this class, including error case
  • Reasonable code cleanup; Further refactoring could consider extracting the handling of specific annotations into dedicated strategies...

Note: This merge also includes the code from merge request #8

Extracted JBehaveProject.addStepCandidates() into dedicated
MethodToStepCandidateReducer.
MethodToStepCandidateReducer does not know about project specific
stuff any more, covered behind the listener.
StepCandidate does not carry IAnnotation anymore, priority directly used
- covered annotation types Given,When,Then,Alias,Aliases
- specific unit test added
- full qualified name is still assumed to be from JBehave if missing
- extracted method for pattern variant extraction (code duplication)
- StepType default is fixed to be GIVEN
- removed unnecessary null checks
- fixed logging config (wrong package used for ErrorLevelConverter)
maurotalevi added a commit that referenced this pull request Feb 28, 2013
Fix: Resolving steps of referenced jars
@maurotalevi maurotalevi merged commit 8f5efea into jbehave:master Feb 28, 2013
@dertseha dertseha deleted the referencedProjects_exception branch February 28, 2013 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Story editor does not resolve steps from referenced projects or jars on classpath
2 participants