Skip to content
Advertisement

Spring junit tests with couchbase

I have some Services that should get documents from couchbase.

Services:

JavaScript

Also I have DocRepository interface with necessary methods and views on couchbase server. When I run my app and call Services its work fine, but I need tests for this Services.

Tests:

JavaScript

Running tests successful only in 90%. And another moment, I use maven, and when it runs tests of project it always fail…

Can anybody advise something how write test for for working with couchbase.

Advertisement

Answer

Problem resolved. Reason was that after document added to couchbase view was not refresh. So just needed to add

JavaScript

View will be refresh before receiving data.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement