Esempio n. 1
0
  @Test(expected = IllegalArgumentException.class)
  public void testMaxStatsMissing() {
    Map<Stat, Integer> maxStats = defaultStats();
    maxStats.put(Stat.HP, 20);

    new Character(
        maxStats, ModelTestUtils.createGrowth(), ModelTestUtils.homogeneousStats(30), "test");
  }
Esempio n. 2
0
  @Test(expected = IllegalArgumentException.class)
  public void testStatsMissing() {
    Map<Stat, Integer> stats = defaultStats();
    stats.remove(Stat.HP);

    new Character(
        ModelTestUtils.homogeneousStats(30), ModelTestUtils.createGrowth(), stats, "test");
  }
Esempio n. 3
0
 @Test(expected = IllegalArgumentException.class)
 public void testStatsOverHardCap() {
   new Character(
       ModelTestUtils.homogeneousStats(200),
       ModelTestUtils.createGrowth(),
       ModelTestUtils.homogeneousStats(400),
       "Test");
 }