package cucumber.runtime.java.weld;

import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;

import javax.inject.Inject;
import javax.inject.Singleton;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

@Singleton
public class BellyStepdefs {

    @Inject
    private Belly belly;

    private boolean inTheBelly = false;

    @Given("I have {int} cukes in my belly")
    public void haveCukes(int n) {
        belly.setCukes(n);
        inTheBelly = true;
    }

    @Then("there are {int} cukes in my belly")
    public void checkCukes(int n) {
        assertEquals(n, belly.getCukes());
        assertTrue(inTheBelly);
    }
}

@@ -290,16 +290,253 @@
 defs %7B%0A%0A
+    // For injecting classes from src/test/java, your beans.xml has to be%0A    // located in src/test/resources.%0A    // If you want to inject classes from src/main/java, you will need an%0A    // additional beans.xml in src/main/resources.%0A
     @Inj

Document the need for two beans.xml for injection from /src/main/java (#923)