The CatalogControllerWebIntegrationTests mvc test passes no matter what the model attribute name ist. The hamcrest matchers is(not(emptyIterable())) convert to true when the model attribute isn't present.
Suggested fix:
andExpect(model().attributeExists("catalog"));
The
CatalogControllerWebIntegrationTests
mvc test passes no matter what the model attribute name ist. The hamcrest matchersis(not(emptyIterable()))
convert to true when the model attribute isn't present. Suggested fix:andExpect(model().attributeExists("catalog"));