2013_2014:lp:idse:gl:td:testsmockup
This is an old revision of the document!
Table of Contents
Tests d'intégrations avec les "mocks"
Commencez par downloader easyMock
Apprendre avec Easy Mock
Apprenez en suivant ce tutoriel!!
Créer un projet Java
Contrairement au tutoriel mettez les tests dans un package tests
Vous pouvez avoir besoin de rajouter dans le classpath la library JUNIT (BuildPath, Configure Build Path, Libraries, JUNIT, Junit4) le .jar easymock-3.2.jar que vous avez téléchargé (BuildPath, Configure Build Path, external jars, sélectionner votre archive)
Si vous ne connaissez pas la notion d'un nombre variable de paramètres à une méthode noté … http://eclipse.org/aspectj/doc/next/adk15notebook/varargs.html
A vous !!
Utilisez EasyMock pour tester séparément vos filtres ou vos producteurs d'informations.
Références
2013_2014/lp/idse/gl/td/testsmockup.1380222687.txt.gz · Last modified: 2013/09/26 19:11 by blay