Skip to content

Commit 8e290fb

Browse files
committed
[Spring] Throw exception when step definitions are annotated with component
When step definitions are annotated with @component or other related annotations they can be picked up by springs class path scanning. This conflicts with cucumbers class path scanning and may result in multiple bean definitions for the same class. This problem is hard to understand and hard to trace. By making the problem explicit and providing a clear instruction on how to resolve this we can hopefully avoid future confusion. The current implementation only checks the a subset of all annotations. This will hopefully be sufficient. Closes #1225
1 parent 0a4da49 commit 8e290fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
</dependency>
4747
<dependency>
4848
<groupId>org.mockito</groupId>
49-
<artifactId>mockito-all</artifactId>
49+
<artifactId>mockito-core</artifactId>
5050
<scope>test</scope>
5151
</dependency>
5252
</dependencies>

0 commit comments

Comments
 (0)