r1 - 14 May 2006 - 22:43:25 - MeLgaYou are here: TWiki >  Doo Web  > DiaADia > OnzeDeMaio > IntroducaoAoDesenvolvimentoGuiadoPorTestes > UmExemploSimplesPorFavor > DefinindoUmaInfraestruturaDeTestes
public class TestesDeClasseTal { 
   
   public static void main(String[] argumentos) {
      
      // Bateria de testes:
      teste1();
      teste2();
      //...  
      
      // O código passou em todos os testes 
      System.out.println("OK");  
   }
   
   private static void teste1() {
      // assert condiçãoDoTeste1   
   }
   
   private static void teste2() {
      // assert condiçãoDoTeste2   
   }
   
   // ...
}


Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback