Questions tagged [fongo]

Fongo, for "Fake Mongo," is a Java-based in-memory implementation of MongoDB. It is intended to assist in unit testing.

21 questions
0
votes
1 answer

UnsatisfiedDependencyException in SpringMVC and MongoDB project

I'm working on a Spring MVC and MongoDB backed application. My api is working fine,but i would like to create an integration test with Fongo in order to test saving a file and after getting this file by my services. I have already tried, but when i…
0
votes
1 answer

Fongo TestNG Delete before method

reading at fongo documentation i found that it supports the @Rule annotation to delete the contents of the DB before executing a test. i want to achieve the same thing using TestNG but i can't find the correct way to do this, i tried calling…
lacripta
  • 112
  • 3
  • 15
0
votes
1 answer

Can I use repository populator bean with fongo?

I'm using Fongo not only for unit tests but also for integration tests so I would like to initialize Fongo with some collections, is that possible? This is my java config (based on Oliver G. answer): @EnableAutoConfiguration(exclude = { …
anat0lius
  • 2,145
  • 6
  • 33
  • 60
0
votes
1 answer

Override Spring Mongo config with Fongo

I have a Spring application using the Spring-Mongo integration. In the main app config XML we have stuff like this to define the Mongo instances (there are several):
ryber
  • 4,537
  • 2
  • 26
  • 50
0
votes
1 answer

How can I use ISODate in NosqlUnit data set file(MongoDB)

I am using NosqlUnit, Fongo, Spring-Data-MongoDB my dataset format like below. { "people" : { "data" : [ { "key" : "12345", "phone" : "33333", "register" :…
moon
  • 165
  • 1
  • 3
  • 6
0
votes
1 answer

In memory mongodb for read-intensive applications

I have a project in which the data is readonly (no writes at all) and for each request a couple of thousand reads are performed and thus the bottleneck is getting the data from the database. We're running tokumx on tmpfs (~12GB compressed database)…
1
2