<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>griefworker</author_name>
  <author_url>https://blog.hatena.ne.jp/griefworker/</author_url>
  <blog_title>present</blog_title>
  <blog_url>https://tnakamura.hatenablog.com/</blog_url>
  <categories>
    <anon>GAE</anon>
    <anon>Java</anon>
  </categories>
  <description>Slim3 で、ログイン必須のコントローラーやサービスをテストする方法が分かりにくかったので、やり方をメモしておきます。 まぁ、やり方は簡単で、tester.environment の setEmail と setAttributes を使うだけなんですけどね。 // ログイン Map&lt;String, Object&gt; attrs = new HashMap&lt;String, Object&gt;(); attrs.put(&quot;com.google.appengine.api.users.UserService.user_id_key&quot;, &quot;1&quot;); tester.environment.setAttri…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftnakamura.hatenablog.com%2Fentry%2F20110719%2Fslim3_emulate_authentication&quot; title=&quot;Slim3 でログイン必須のコントローラーやサービスをテストする方法 - present&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>2011-07-19 00:00:00</published>
  <title>Slim3 でログイン必須のコントローラーやサービスをテストする方法</title>
  <type>rich</type>
  <url>https://tnakamura.hatenablog.com/entry/20110719/slim3_emulate_authentication</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
