<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>anton0825</author_name>
  <author_url>https://blog.hatena.ne.jp/anton0825/</author_url>
  <blog_title>日々精進</blog_title>
  <blog_url>https://anton0825.hatenablog.com/</blog_url>
  <categories>
    <anon>Android</anon>
  </categories>
  <description>JSONのAssertは文字列の比較ではやりたくないなーと思いAssertionライブラリを探したらいいのがあった。 skyscreamer/JSONassert インストールはbuild.gradleに以下を書けばOK。 androidTestCompile 'org.skyscreamer:jsonassert:1.2.+' 以下のような感じで文字列で用意した期待結果とPostリクエストのBodyの比較をしている。 JSONAssert.assertEquals(TestUtils.getStringFromAssets(&quot;login.request.json&quot;), new JSONObj…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanton0825.hatenablog.com%2Fentry%2F2014%2F12%2F23%2F000000&quot; title=&quot;JavaのJSONのAssertはJSONassertライブラリを使ってやると楽 - 日々精進&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>2014-12-23 00:00:00</published>
  <title>JavaのJSONのAssertはJSONassertライブラリを使ってやると楽</title>
  <type>rich</type>
  <url>https://anton0825.hatenablog.com/entry/2014/12/23/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
