<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>snoopeanutss</author_name>
  <author_url>https://blog.hatena.ne.jp/snoopeanutss/</author_url>
  <blog_title>ぽんこつ日記</blog_title>
  <blog_url>https://olafnosuke.hatenablog.com/</blog_url>
  <categories>
    <anon>テスト</anon>
    <anon>Java</anon>
    <anon>SpringBoot</anon>
  </categories>
  <description>mockMvcを使用したControllerのテスト方法(Spring Boot) Controllerのテストやフィルターやインターセプターが実際に動作しているのか検証する際にMockMvcを使用する。 テストの作成方法をメモしておく。 シンプルなControllerのテスト作成 以下がテスト対象のコントローラークラスだとする。 @Controller public class SampleController { @RequestMapping(value = &quot;/&quot;, method = RequestMethod.GET) public String forwardStartPage(M…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Folafnosuke.hatenablog.com%2Fentry%2F2023%2F01%2F03%2F171109&quot; title=&quot;mockMvcを使用したControllerのテスト方法（Spring Boot） - ぽんこつ日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-01-03 17:11:09</published>
  <title>mockMvcを使用したControllerのテスト方法（Spring Boot）</title>
  <type>rich</type>
  <url>https://olafnosuke.hatenablog.com/entry/2023/01/03/171109</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
