资 源 简 介
Update 6/3/2011: Project temporarily unavailable
What is BMUnit?
To test Blue Martini applications using JUnit, you need all the application context (configuration files, database access, etc...), the goal of this project is to make this configuration simpler.
For automatic testing, we can imagine the following techniques:
* Loading Blue Martini container inside the test runner but it appears to be painful to configure and slow as the initialization could be quite long.
* Web testing by using an HttpUnit-like or Selenium. It is a very good approach for automatic testing but it is adapted to acceptance test only and it does not work for unit test.
BMUnit proposes an intermediate approach. Usually for automated testing, the most important layer to test is neither the view nor the model but the service layer meaning in BM language, core business actions. BMUnit loads a light BM command line application context in order to be able t