/demo-java-hungnguyendang

Demo TDD with sample application, using Spring data mongodb, spring boot and spring junittest

Primary LanguageJava

demo-java-hungnguyendang

Demo TDD with sample application

Setup gradle

https://gradle.org/

Setup mongodb

https://www.mongodb.org/ start mongodb by: #bin/mongod, using mongodb console #bin/mongo create database demojavahungnguyen

#use demojavahungnguyen;

Run test

Using SpringJUnitTest

If we want more simple, we just using Mockito, I'd like using SpringJUnitest, that we can test access also Database, not only mock