Skip to content

Commit 00e1dab

Browse files
albersmpkorstanje
authored andcommitted
Document the need for two beans.xml for injection from /src/main/java (#923)
[Weld] Document the need for a beans.xml per source root
1 parent 9ee9a14 commit 00e1dab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

weld/src/test/java/cucumber/runtime/java/weld/BellyStepdefs.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
@Singleton
1313
public class BellyStepdefs {
1414

15+
// For injecting classes from src/test/java, your beans.xml has to be
16+
// located in src/test/resources.
17+
// If you want to inject classes from src/main/java, you will need an
18+
// additional beans.xml in src/main/resources.
1519
@Inject
1620
private Belly belly;
1721

0 commit comments

Comments
 (0)