タグ

2012年2月18日のブックマーク (2件)

  • The Green Bar » Blog Archive » JUnit 4.7: Interceptors: expected exceptions

    In the latest snapshot build of JUnit 4.7, we’ve re-implemented expected exceptions using Interceptors. Share and Enjoy! public static class HasExpectedException { @Interceptor public ExpectedException thrown= new ExpectedException(); @Test public void throwsNothing() { } @Test public void throwsNullPointerException() { thrown.expect(NullPointerException.class); throw new NullPointerException(); }

    nobusue
    nobusue 2012/02/18
    Interceptorで複数のExceptionをまとめて扱う
  • ビルド職人本の裏話 - marsのメモ

    書く書く詐欺だったビルド職人の裏話をやっと書きます。今回は入稿してからの話。入稿はHTMLで行いました。SphinxのHTMLーーーmake htmlで生成するアレを入稿。それをGDPの中の人がEPUB形式に変換して、お互い微調整を行うという流れ。 Sphinxが出力したHTMLのマークアップをGDPのEPUBのマークアップに変換していくのですが、GDP側のマークアップが意味的に細かいので、結構修正が多いです。正直、HTMLで入稿して(GDPの中の人が)楽だったのかな?と思えるくらい。 例えば、"code"なんてのはSphinx側では"``code``"だけなんですが、GDPのEPUBはcode, var, kbd, sampを使い分けてる。「EPUB3用XHTML作成ガイド」にもそう書いてるんですが、いくらなんでもやり過ぎやろー!?と思ってたら、ホントにそうやってる。 Sphinxで原

    ビルド職人本の裏話 - marsのメモ