<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>peugeot-106-s16</author_name>
  <author_url>https://blog.hatena.ne.jp/peugeot-106-s16/</author_url>
  <blog_title>つくるの大好き。</blog_title>
  <blog_url>https://satoshi-maemoto.hatenablog.com/</blog_url>
  <categories>
    <anon>Android</anon>
    <anon>C++</anon>
  </categories>
  <description>InstrumentedTestを使えばデバイス上でUnitTestができますが、状態や映像を表示したりするにはUIが表示できると便利です。 InstrumentedTestにActivity表示のルールを追加する Activityのテストをするにはテストクラスに ActivityTestRule というルールを追加します。 つまりテスト実行時にこのActivityを表示するように、といったルールの定義です。 ExampleInstrumentedTest.java @Rule public ActivityTestRule rule = new ActivityTestRule&lt;&gt;(Main…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsatoshi-maemoto.hatenablog.com%2Fentry%2F2018%2F11%2F07%2F155624&quot; title=&quot;Android C++開発 [2] : InstrumentedTestでUIを表示する - つくるの大好き。&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/p/peugeot-106-s16/20181107/20181107153712.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-11-07 15:56:24</published>
  <title>Android C++開発 [2] : InstrumentedTestでUIを表示する</title>
  <type>rich</type>
  <url>https://satoshi-maemoto.hatenablog.com/entry/2018/11/07/155624</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
