java - Unit & Integration Testing with Couchbase -
i setup new project using spring-data-couchbase , stumped on how should approach unit , integration testing here.
typically jpa can mock out repository somehow (assuming similar couchbase spring) , okay unit testing, jpa wire in memory database , have full integration testing suite. there way couchbase?
also if don't mind mentioning tips here first major nosql project :) thanks!
couchbase not run in-memory unfortunately. unit testing have mock couchbase's api. there couchbasemock project facilitate that: https://github.com/couchbase/couchbasemock
there possibility use runner prior launching test. there maven plugin allow run couchbase or couchbase docker image.
Comments
Post a Comment