Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure & use mongodb mockup server for unit testing

I have to develop some Junit tests for Java code using a MongoDB store. Is there any framework/library which permits me initializing a mock in-memory MongoDB server?

(The idea is to test only the code itself, that means, in any machine independently on if MongoDB is installed & running).

Thanks in advance!

like image 924
Ruben Avatar asked May 02 '11 13:05

Ruben


People also ask

What does configure meaning?

Definition of configure transitive verb. : to set up for operation especially in a particular way a fighter plane configured for the Malaysian air force.

What is another word for configure?

In this page you can discover 23 synonyms, antonyms, idiomatic expressions, and related words for configure, like: setup, build, customize, structure, form, compose, pattern, make, router, shape and install.

What is the purpose of configure?

Configuration management is a process for maintaining computer systems, servers, and software in a desired, consistent state. It's a way to make sure that a system performs as it's expected to as changes are made over time.

What is to configure a device?

In the simplest terms of computers and technology, the definition of configuration pertains to the arrangement of the hardware and software of IT system. Management of the components, settings and more ensures all IT systems can function smoothly and gives you greater control over the devices on your network.


2 Answers

fongo might be what you are looking for.

like image 173
smola Avatar answered Sep 25 '22 19:09

smola


I wrote a MongoDB fake implementation in Java: mongo-java-server (see this answer).

like image 6
Benedikt Waldvogel Avatar answered Sep 22 '22 19:09

Benedikt Waldvogel