Skip to content

Instantly share code, notes, and snippets.

View watanabeshuji's full-sized avatar
💭
in the snow

SHUJI Watanabe watanabeshuji

💭
in the snow
View GitHub Profile
@watanabeshuji
watanabeshuji / ItemMatcher.java
Created November 20, 2013 08:29
ItemMatcher
public class ItemMatcher extends TypeSafeMatcher<Item> {
public static Matcher<Item> item(Item item) {
return new ItemMatcher(item);
}
private Item expected;
private String fieldName;
private Object expectedValue;
private Object actualValue;