easysoa / EasySOA

A light, collaborative platform to make Service Oriented Architecture simple.
http://www.easysoa.org
35 stars 8 forks source link

testing & mocking #74

Open mdutoo opened 12 years ago

mdutoo commented 12 years ago

Write a testing & mocking framework allowing to simulate services and check on information that is provided in calls to them, in two ways :

  1. request by using the Exchange Simulator / Template engine, see #73 asserts are done either using Fields (not used in template), or using simple asserts like contains / regexp, or using model / def based asserts
  2. object by integrating a mocking framework such as Mockito
JGuillemotte commented 12 years ago

A test using Mockito has been added in easysoa-registry-api-frascati project (see https://github.com/easysoa/EasySOA/blob/master/easysoa-registry/easysoa-registry-api/easysoa-registry-api-frascati/src/test/java/org/easysoa/sca/frascati/ApiFrascatiImportServiceTest.java).

This test use the mockito spy functionnality to check if mock services methods are well called.