hbelmiro commented on a change in pull request #695:
URL: https://github.com/apache/tomee/pull/695#discussion_r462939023



##########
File path: examples/projectstage-demo/README_pt.adoc
##########
@@ -0,0 +1,330 @@
+= Estágio do Projeto DeltaSpike
+:index-group: Testing Techniques
+:jbake-type: page
+:jbake-status: published
+
+Este exemplo mostra como usar 
https://deltaspike.apache.org/documentation/projectstage.html[deltaSpike 
estágio do projeto] nos testes do Arquillian em execução no TomEE.
+
+== Exemplo
+
+[source, java]
+----
+import org.apache.deltaspike.core.api.projectstage.ProjectStage;
+
+import javax.enterprise.inject.Produces;
+import javax.inject.Inject;
+
+public final class ManagerFactory {
+
+    @Inject
+    private ProjectStage projectStage; // <1>
+
+    @Produces
+    public Manager currentManager() {
+        if (ProjectStage.UnitTest.equals(projectStage)) {
+            return new Manager("test");
+        } else if (ProjectStage.Development.equals(projectStage)) {
+            return new Manager("dev");
+        }
+        return new Manager(projectStage.toString());
+    }
+}
+----
+<<1>> Aqui o `ProjectStage` é injetado via CDI .
+
+No exemplo acima, uma instância do `Manager` é criada com base no ProjectStage 
atual.
+
+== Configurando o Project stage
+
+Existem algumas maneiras de configurar o project stage,neste exemplo, usaremos 
um

Review comment:
       ```suggestion
   Existem algumas maneiras de configurar o project stage, neste exemplo, 
usaremos um
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to