私は次のフォームを持っています
public class MyForm {
private Account account;
}
public class Account {
private String firstName;
}
firstName パラメータを渡すにはどうすればよいですか? (次のアプローチは機能しません)
mockMvc.perform(post("/xyz")
.param("account.firstName", "John"))
.andExpect(model().hasErrors())
.andExpect(view().name("/xyz"))
.andExpect(status().isOk())