teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

コードの定数を変更

2017/02/07 05:20

投稿

KSwordOfHaste
KSwordOfHaste

スコア18404

answer CHANGED
@@ -8,6 +8,6 @@
8
8
 
9
9
  <T, R> isFor(Function<T, R> function, T... values);
10
10
  ->
11
- assertThat(actual.apply("bar"), isFor(expect.apply("bar"), "foo", "bar"));
11
+ assertThat(actual.apply("hoge"), isFor(expect.apply("hoge"), "foo", "bar"));
12
12
 
13
13
  それとも既に定義されているんでしょうか・・・もしこのようなものがなくても、値のパターンを指定するJUnitの機能が別途あった気がするのでそちらを使う方がよくて、自分でマッチャーを定義する手間をかける必要はないかも知れません・・・