Mastering Spring 5.0
上QQ阅读APP看书,第一时间看更新

Unit testing

In this unit test, we want to set up BasicModelMapController, execute a get request to /welcome-model-map, and check whether the model has the expected attribute and whether the expected view name is returned.