| At line 215 changed 1 line. |
| Open test/web/**/action/PersonActionTest.java and add the following method: |
| Devemos abrir o arquivo test/web/**/action/PersonActionTest.java e adicionar o seguinte método: |
| At line 231 changed 1 line. |
| This class will not compile until you add the PERSON_LIST variable to the src/dao/**/Constants.java file. |
| Esta classe não compilará até que adicionemos a variável PERSON_LIST ao arquivo src/dao/**/Constants.java. |
| At line 233 changed 1 line. |
| ;:%%(color: blue)''I usually copy a similar variable that already exists in this file - i.e. USER_LIST.'' |
| ;:%%(color: blue)''Geralmente eu copio uma variável similar que já existe no arquivo - i.e. USER_LIST.'' |
| At line 238 changed 1 line. |
| * The request scope attribute that holds the person list |
| * O atributo de escopo de requisição que contém a lista de pessoas |
| At line 243 changed 1 line. |
| Now save all your changes. You won't be able to run __ant test-web -Dtestcase=PersonAction__ yet since ''PersonAction.search()'' does not exist (yet). |
| Agora devemos salvar todas as nossas modificações. Não seremos capazes de rodar __ant test-web -Dtestcase=PersonAction__ ainda porque o método ''PersonAction.search()'' não existe (ainda). |
| At line 246 changed 1 line. |
| Open src/web/**/action/PersonAction.java and add the following XDoclet tag at the top - to forward to our list screen. |
| Abra o arquivo src/web/**/action/PersonAction.java e adicione a seguinte tag XDoclet na parte superior - para mapearmos um envio à nossa tela de listagem. |
| At line 253 changed 1 line. |
| Now add the search method to the body of the PersonAction class. |
| Agora devemos adicionar o método de pesquisa ao corpo da classePersonAction. |
| At line 255 changed 1 line. |
| ;:%%(color: blue)''I used UserAction.search() as a template for this method.'' |
| ;:%%(color: blue)''Utilizei UserAction.search() como um template para este método.'' |
| At line 264 changed 1 line. |
| log.debug("Entering 'search' method"); |
| log.debug("Entrando no método 'search'"); |
| At line 271 changed 1 line. |
| // return a forward to the person list definition |
| // retorna um envio à definição da lista de pessoas |
| At line 276 changed 1 line. |
| Run __ant test-web -Dtestcase=PersonAction__. |
| Rode __ant test-web -Dtestcase=PersonAction__. |