<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>int128</author_name>
  <author_url>https://blog.hatena.ne.jp/int128/</author_url>
  <blog_title>GeekFactory</blog_title>
  <blog_url>https://int128.hatenablog.com/</blog_url>
  <categories>
    <anon>spock</anon>
    <anon>spring</anon>
    <anon>groovy</anon>
  </categories>
  <description>Spring BootアプリケーションのテストをSpockで書く方法を説明します。最近のバージョンを対象にしています。 Spring Boot 1.4 Spock 1.1-rc-3 Groovy 2.4 本稿では以下のテストレベルを対象とします。 コンポーネントテスト（依存コンポーネントをモックに差し替えた状態でコンポーネントをテストする） E2Eテスト（依存コンポーネントをモックに差し替えた状態でAPIをテストする） まずは、build.gradleに依存関係を追加しておきます。 dependencies { testCompile 'org.springframework.boot:spr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fint128.hatenablog.com%2Fentry%2F2016%2F12%2F13%2F003600&quot; title=&quot;Spring BootアプリのテストをSpockで書く - GeekFactory&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>2016-12-13 00:36:00</published>
  <title>Spring BootアプリのテストをSpockで書く</title>
  <type>rich</type>
  <url>https://int128.hatenablog.com/entry/2016/12/13/003600</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
