2018-08-20から1日間の記事一覧
Spring Bootのユニットテストでセッションスコープのテストをしたいときに MockHttpSession を使用することでモックデータを作成ができる。 MockHttpSession session = new MockHttpSession(); session.setAttribute("key", "value"); MockHttpServletReques…
Spring Bootのユニットテストでセッションスコープのテストをしたいときに MockHttpSession を使用することでモックデータを作成ができる。 MockHttpSession session = new MockHttpSession(); session.setAttribute("key", "value"); MockHttpServletReques…