User Tools

Site Tools


2013_2014:lp:idse:gl:td:testsmockup

This is an old revision of the document!


Tests d'intégrations avec les "mocks"

Commencez par downloader easyMock

http://easymock.org/Downloads.html

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 21:11 by blay