<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>irof</author_name>
  <author_url>https://blog.hatena.ne.jp/irof/</author_url>
  <blog_title>日々常々</blog_title>
  <blog_url>https://irof.hateblo.jp/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>モッククラスを使うべきか否か から一歩踏み出してみましょう。 モックを使う選択をした。そこはゴールではありません。 お題 RestTemplate を使用して外部サービスを呼び出す場合を考えてください。 ここでの「外部サービス」はネットワーク越しにアクセスするあらゆるものです。 （12factorに準じてバックエンドサービスって書けばよかったかもしれない。） 「なぞのぎじゅつ」はなぞでもなんでもないですが、そこは突っ込まないでください。あとで言い訳してます。 コードはこんな感じ。あくまで感じ。 @Component class MyClass { RestTemplate restTempla…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Firof.hateblo.jp%2Fentry%2F2019%2F07%2F18%2F140046&quot; title=&quot;どこでモックを使おうか - 日々常々&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>https://cdn-ak.f.st-hatena.com/images/fotolife/i/irof/20190718/20190718004005.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-07-18 14:00:46</published>
  <title>どこでモックを使おうか</title>
  <type>rich</type>
  <url>https://irof.hateblo.jp/entry/2019/07/18/140046</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
