<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dais39</author_name>
  <author_url>https://blog.hatena.ne.jp/dais39/</author_url>
  <blog_title>daisuzz.log</blog_title>
  <blog_url>https://iikanji.hatenablog.jp/</blog_url>
  <categories>
    <anon>Spring</anon>
  </categories>
  <description>今回は、クライアントサイドのクラスのモックテストを行うときに便利な、MockRestServiceServerについて書いていきます。 MockRestServiceServer とは RestTemplateを利用して外部のサーバにHTTPリクエストを送信するクラス(Client-side)のテストを行いたい場合に使うクラス 期待するリクエストとそのレスポンスのモックを指定することで、外部のサーバにHTTPリクエストを送らずに、テストをすることができる。 使い方 テストクラスのなかで、RestTemplateのインスタンスを用意し、RestTemplateをMockRestServiceSe…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiikanji.hatenablog.jp%2Fentry%2F2018%2F04%2F01%2F222853&quot; title=&quot;Spring FrameworkのMockRestServiceServerについて - daisuzz.log&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>2018-04-01 22:28:53</published>
  <title>Spring FrameworkのMockRestServiceServerについて</title>
  <type>rich</type>
  <url>https://iikanji.hatenablog.jp/entry/2018/04/01/222853</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
