st-tu-dresden / videoshop

SalesPoint sample application
Apache License 2.0
87 stars 246 forks source link

CatalogControllerWebIntegrationTests passes with any modelAttribute name #155

Closed MirkoJa closed 2 years ago

MirkoJa commented 2 years ago

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"));