Lines Matching refs:Dice
37 Dice dice = new Dice(3, 6); in testRepresenter()
46 Dice dice = new Dice(3, 6); in testDiceRepresenter()
47 Map<String, Dice> data = new HashMap<String, Dice>(); in testDiceRepresenter()
56 this.representers.put(Dice.class, new RepresentDice()); in DiceRepresenter()
61 Dice dice = (Dice) data; in representData()
79 return new Dice(a, b); in construct()
88 Map<String, Dice> map = (Map<String, Dice>) data; in testConstructor()
89 assertEquals(new Dice(8, 4), map.get("initial hit points")); in testConstructor()
99 Map<String, Dice> treasure = new HashMap<String, Dice>(); in testImplicitResolver()
100 treasure.put("treasure", new Dice(10, 20)); in testImplicitResolver()
105 Map<String, Dice> map = (Map<String, Dice>) data; in testImplicitResolver()
106 assertEquals(new Dice(5, 10), map.get("damage")); in testImplicitResolver()
116 Map<String, Dice> treasure = new HashMap<String, Dice>(); in testImplicitResolverWithNull()
117 treasure.put("treasure", new Dice(10, 20)); in testImplicitResolverWithNull()
122 Map<String, Dice> map = (Map<String, Dice>) data; in testImplicitResolverWithNull()
123 assertEquals(new Dice(5, 10), map.get("damage")); in testImplicitResolverWithNull()
127 public Dice treasure;
154 bean.treasure = new Dice(10, 20); in testImplicitResolverJavaBean()