@@ -0,0 +1,2090 @@
+package io.quarkus.arc.test.autoproduces;%0A%0Aimport static java.lang.annotation.ElementType.FIELD;%0Aimport static java.lang.annotation.ElementType.METHOD;%0Aimport static java.lang.annotation.ElementType.PARAMETER;%0Aimport static java.lang.annotation.ElementType.TYPE;%0Aimport static java.lang.annotation.RetentionPolicy.RUNTIME;%0Aimport static org.junit.jupiter.api.Assertions.assertFalse;%0A%0Aimport java.lang.annotation.Inherited;%0Aimport java.lang.annotation.Retention;%0Aimport java.lang.annotation.Target;%0A%0Aimport javax.enterprise.context.ApplicationScoped;%0Aimport javax.enterprise.context.Dependent;%0Aimport javax.enterprise.context.control.ActivateRequestContext;%0Aimport javax.enterprise.inject.Instance;%0Aimport javax.inject.Inject;%0Aimport javax.inject.Qualifier;%0A%0Aimport org.jboss.shrinkwrap.api.ShrinkWrap;%0Aimport org.jboss.shrinkwrap.api.asset.StringAsset;%0Aimport org.jboss.shrinkwrap.api.spec.JavaArchive;%0Aimport org.junit.jupiter.api.Test;%0Aimport org.junit.jupiter.api.extension.RegisterExtension;%0A%0Aimport io.quarkus.test.QuarkusUnitTest;%0A%0Apublic class AutoProducerMethodDisabledTest %7B%0A%0A    @RegisterExtension%0A    static final QuarkusUnitTest config = new QuarkusUnitTest()%0A            .setArchiveProducer(() -%3E ShrinkWrap.create(JavaArchive.class)%0A                    .addClasses(AutoProducerMethodDisabledTest.class, Client.class, Producers.class)%0A                    .addAsResource(new StringAsset(%22quarkus.arc.auto-producer-methods=false%22), %22application.properties%22));%0A%0A    @Inject%0A    Client bean;%0A%0A    @ActivateRequestContext%0A    @Test%0A    public void testProducerIsIgnored() %7B%0A        assertFalse(bean.foo.isResolvable());%0A    %7D%0A%0A    @Dependent%0A    static class Client %7B%0A%0A        @Inject%0A        @MyQualifier%0A        Instance%3CString%3E foo;%0A%0A    %7D%0A%0A    @ApplicationScoped%0A    static class Producers %7B%0A%0A        // @Produces is not added automatically%0A        @MyQualifier%0A        String produceString() %7B%0A            return %22ok%22;%0A        %7D%0A%0A    %7D%0A%0A    @Qualifier%0A    @Inherited%0A    @Target(%7B TYPE, METHOD, FIELD, PARAMETER %7D)%0A    @Retention(RUNTIME)%0A    @interface MyQualifier %7B%0A%0A    %7D%0A%7D%0A

Add test with quarkus.arc.auto-producer-methods=false