Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | package br.gov.al.saude.test.builder; |
| 2 | |||
| 3 | import br.gov.al.saude.rhd.model.view.Documentacao; |
||
| 4 | import br.gov.al.saude.test.unidade.generic.builder.AbstractEntidadeBuilder; |
||
| 5 | |||
| 6 | public class DocumentacaoBuilder extends AbstractEntidadeBuilder<Documentacao> { |
||
| 7 | |||
| 8 | public DocumentacaoBuilder comCpf(String cpf) { |
||
| 9 | entidade.setCpf(cpf); |
||
| 10 | return this; |
||
| 11 | } |
||
| 12 | |||
| 13 | public DocumentacaoBuilder comNumeroPisPasep(String numeroPisPasep) { |
||
| 14 | entidade.setNumeroPisPasep(numeroPisPasep); |
||
| 15 | return this; |
||
| 16 | } |
||
| 17 | |||
| 18 | public DocumentacaoBuilder comOrgaoExpedidorRg(String orgaoExpedidorRg) { |
||
| 19 | entidade.setOrgaoExpedidorRg(orgaoExpedidorRg); |
||
| 20 | return this; |
||
| 21 | } |
||
| 22 | |||
| 23 | public DocumentacaoBuilder comRg(String rg) { |
||
| 24 | entidade.setRg(rg); |
||
| 25 | return this; |
||
| 26 | } |
||
| 27 | |||
| 28 | public DocumentacaoBuilder comUfExpedidorRg(String ufExpedidorRg) { |
||
| 29 | entidade.setUfExpedidorRg(ufExpedidorRg); |
||
| 30 | return this; |
||
| 31 | } |
||
| 32 | |||
| 33 | @Override |
||
| 34 | protected void inicializarDadosDefault() { |
||
| 35 | entidade = new Documentacao(); |
||
| 36 | } |
||
| 37 | |||
| 38 | } |