commit 1cd7c60cb4df739249ac9a7a11a04b864c73d807
Author: zambrovski <[email protected]>
AuthorDate: Tue, 7 May 2013 02:05:16 +0200
Commit: zambrovski <[email protected]>
CommitDate: Tue, 7 May 2013 02:05:16 +0200
changed variable name
diff --git
a/jbehave-needle/src/main/java/org/jbehave/core/steps/needle/NeedleStepsFactory.java
b/jbehave-needle/src/main/java/org/jbehave/core/steps/needle/NeedleStepsFactory.java
index 5e368a1..aaffad2 100644
---
a/jbehave-needle/src/main/java/org/jbehave/core/steps/needle/NeedleStepsFactory.java
+++
b/jbehave-needle/src/main/java/org/jbehave/core/steps/needle/NeedleStepsFactory.java
@@ -34,7 +34,7 @@ import de.akquinet.jbosscc.needle.injection.InjectionProvider;
*/
public class NeedleStepsFactory extends NeedleTestcase implements
InjectableStepsFactory {
- private final Map<Class<?>, Object> cachedStepsInstances = new
LinkedHashMap<Class<?>, Object>();
+ private final Map<Class<?>, Object> cachedTypeInstances = new
LinkedHashMap<Class<?>, Object>();
private final Configuration configuration;
private Class<?>[] steps;
@@ -93,15 +93,14 @@ public class NeedleStepsFactory extends NeedleTestcase
implements InjectableStep
* {@inheritDoc}
*/
public Object createInstanceOfType(Class<?> type) {
- final Object instance = cachedStepsInstances.get(type);
+ final Object instance = cachedTypeInstances.get(type);
if (instance == null) {
try {
final Object stepsInstance =
CreateInstanceByDefaultConstructor.INSTANCE.apply(type);
- final InjectionProvider<?>[] foundProviders =
CollectInjectionProvidersFromStepsInstance.INSTANCE
- .apply(stepsInstance);
+ final InjectionProvider<?>[] foundProviders =
CollectInjectionProvidersFromStepsInstance.INSTANCE.apply(stepsInstance);
addInjectionProvider(foundProviders);
initTestcase(stepsInstance);
- cachedStepsInstances.put(type, stepsInstance);
+ cachedTypeInstances.put(type, stepsInstance);
return stepsInstance;
} catch (final Exception e) {
throw new IllegalStateException(e);
diff --git a/pom.xml b/pom.xml
index 09c12d8..aabdae7 100755
--- a/pom.xml
+++ b/pom.xml
@@ -33,6 +33,7 @@
<module>jbehave-groovy</module>
<module>jbehave-scala</module>
<module>jbehave-guice</module>
+ <module>jbehave-needle</module>
<module>jbehave-odf</module>
<module>jbehave-pico</module>
<module>jbehave-spring</module>