Skip to content

mlyly/mlyly-test-spring-data-mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spring data and Mongodb testing

These projects are basicly "private" testing projects so that I can have reminders how to implement stuff when I need them.

These projects are not meant to be "brilliant" - they work for me as reminders. Hopefully someone may also find them useful.

====================================================================== USE AT YOUR OWN RISK

  1. Build and test (AppTest.java)

Using flapdoodle to bootstartp embedded Mongodb.

mvn clean install

You should see something like this:

Running fi.zcode.springmongo.AppTest
14:08:30,136 INFO  [main] [TestContextManager] @TestExecutionListeners is not present for class [class fi.zcode.springmongo.AppTest]: using defaults.
14:08:30,158 INFO  [main] [AppTest] setUp()...
Jun 17, 2013 2:08:30 PM de.flapdoodle.embed.process.store.ArtifactStoreBuilder build
SEVERE: Build ArtifactStore(useCache:true)
Extract /Users/mlyly/.embedmongo/osx/mongodb-osx-x86_64-2.4.3.tgz START
...
14:08:33,949 INFO  [main] [AppTest] testApp)()...
14:08:33,949 INFO  [main] [AppTest] save...
Mon Jun 17 14:08:33.979 [initandlisten] connection accepted from 127.0.0.1:58812 #1 (1 connection now open)
[mongod output] Mon Jun 17 14:08:33.981 [conn1] run command admin.$cmd { isMaster: 1 }
[mongod output] Mon Jun 17 14:08:33.981 [conn1] command admin.$cmd command: { isMaster: 1 } ntoreturn:1 keyUpdates:0  reslen:115 0ms
[mongod output] Mon Jun 17 14:08:33.988 [conn1] opening db:  springmongo
[mongod output] 14:08:33,988 INFO  [main] [AppTest] find...
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.212s
[INFO] Finished at: Mon Jun 17 14:08:37 EEST 2013
[INFO] Final Memory: 11M/554M
[INFO] ------------------------------------------------------------------------

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages