Skip to content

Instantly share code, notes, and snippets.

@klauswuestefeld
Created September 14, 2011 05:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klauswuestefeld/1215891 to your computer and use it in GitHub Desktop.
Save klauswuestefeld/1215891 to your computer and use it in GitHub Desktop.
Transcendento Testes Unitários II
We couldn’t find any files to show.
@klauswuestefeld
Copy link
Author

@juanlopes - Não entendi sua pergunta.

@velo
Copy link

velo commented Apr 19, 2013

@klauswuestefeld
Nesse caso acho que dá mesmo pra ficar sem testes.... mas... sempre o mas.... mas deployer.deployGoodBuild(), trigger.waitFor() e deployer.deployNewBuild() devem ter sidos testados em algum lugar.

Eu tenho uma situação que imagino ser similar ao que você descreve:

    public List<?> list(HttpServletRequest request) {
        return list( FilterFactory.newFilter( GivenSituationFilter.class, request ) );
    }

    protected List<?> list(GivenSituationFilter filter) {
        //logica de vedade
    }

Temos testes para o FilterFactory.newFilter() e testes para o list(GivenSituationFilter) protected. Agora o list(HttpServletRequest) public ficou sem testes.

(2 anos atrasado, kkkkk)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment