<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shiba_yu36</author_name>
  <author_url>https://blog.hatena.ne.jp/shiba_yu36/</author_url>
  <blog_title>$shibayu36-&gt;blog;</blog_title>
  <blog_url>https://blog.shibayu36.org/</blog_url>
  <categories>
    <anon>tech</anon>
    <anon>scala</anon>
  </categories>
  <description>テストをしようとすると、現在時刻を変更したくなることがよくある。現在のプロジェクトではjoda-timeを使っているので、joda-timeのDateTime.nowが返す時刻を変更したい。ということで、それを簡単にできるjoda-time-fakeというライブラリを作りました。 https://github.com/shibayu36/joda-time-fake-scala https://mvnrepository.com/artifact/com.github.shibayu36/joda-time-fake インストール sbtの場合はlibraryDependenciesに入れる。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.shibayu36.org%2Fentry%2F2018%2F03%2F22%2F183000&quot; title=&quot;【Scala】テスト時にjoda-timeの現在時刻を変更できるjoda-time-fakeを作りました - $shibayu36-&amp;gt;blog;&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>2018-03-22 18:30:00</published>
  <title>【Scala】テスト時にjoda-timeの現在時刻を変更できるjoda-time-fakeを作りました</title>
  <type>rich</type>
  <url>https://blog.shibayu36.org/entry/2018/03/22/183000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
